… | |
… | |
1948 | /* ------------------------------------------------------------------------- */ |
1948 | /* ------------------------------------------------------------------------- */ |
1949 | void |
1949 | void |
1950 | rxvt_term::scr_bell () |
1950 | rxvt_term::scr_bell () |
1951 | { |
1951 | { |
1952 | #ifndef NO_BELL |
1952 | #ifndef NO_BELL |
|
|
1953 | |
1953 | # ifndef NO_MAPALERT |
1954 | # ifndef NO_MAPALERT |
1954 | # ifdef MAPALERT_OPTION |
1955 | # ifdef MAPALERT_OPTION |
1955 | if (options & Opt_mapAlert) |
1956 | if (options & Opt_mapAlert) |
1956 | # endif |
1957 | # endif |
1957 | XMapWindow (display->display, TermWin.parent[0]); |
1958 | XMapWindow (display->display, TermWin.parent[0]); |
1958 | # endif |
1959 | # endif |
|
|
1960 | |
1959 | if (options & Opt_visualBell) |
1961 | if (options & Opt_visualBell) |
1960 | { |
1962 | { |
1961 | scr_rvideo_mode (!rvideo); /* refresh also done */ |
1963 | scr_rvideo_mode (!rvideo); /* refresh also done */ |
|
|
1964 | rxvt_usleep (VISUAL_BELL_DURATION); |
1962 | scr_rvideo_mode (!rvideo); /* refresh also done */ |
1965 | scr_rvideo_mode (!rvideo); /* refresh also done */ |
1963 | } |
1966 | } |
1964 | else |
1967 | else |
1965 | XBell (display->display, 0); |
1968 | XBell (display->display, 0); |
|
|
1969 | |
1966 | #endif |
1970 | #endif |
1967 | } |
1971 | } |
1968 | |
1972 | |
1969 | /* ------------------------------------------------------------------------- */ |
1973 | /* ------------------------------------------------------------------------- */ |
1970 | /* ARGSUSED */ |
1974 | /* ARGSUSED */ |