… | |
… | |
1866 | return true; |
1866 | return true; |
1867 | } |
1867 | } |
1868 | |
1868 | |
1869 | #ifndef NO_BELL |
1869 | #ifndef NO_BELL |
1870 | void |
1870 | void |
1871 | rxvt_term::bell_cb (time_watcher &w) |
1871 | rxvt_term::bell_cb (ev::timer &w, int revents) |
1872 | { |
1872 | { |
1873 | rvideo_bell = false; |
1873 | rvideo_bell = false; |
1874 | scr_rvideo_mode (rvideo_mode); |
1874 | scr_rvideo_mode (rvideo_mode); |
1875 | } |
1875 | } |
1876 | #endif |
1876 | #endif |
… | |
… | |
1903 | { |
1903 | { |
1904 | rvideo_bell = true; |
1904 | rvideo_bell = true; |
1905 | scr_rvideo_mode (rvideo_mode); |
1905 | scr_rvideo_mode (rvideo_mode); |
1906 | display->flush (); |
1906 | display->flush (); |
1907 | |
1907 | |
1908 | bell_ev.start (NOW + VISUAL_BELL_DURATION); |
1908 | bell_ev.start (VISUAL_BELL_DURATION); |
1909 | } |
1909 | } |
1910 | else |
1910 | else |
1911 | XBell (dpy, 0); |
1911 | XBell (dpy, 0); |
1912 | #endif |
1912 | #endif |
1913 | } |
1913 | } |
… | |
… | |
2319 | #ifdef TEXT_BLINK |
2319 | #ifdef TEXT_BLINK |
2320 | if (rend & RS_Blink && (back == Color_bg || fore == Color_bg)) |
2320 | if (rend & RS_Blink && (back == Color_bg || fore == Color_bg)) |
2321 | { |
2321 | { |
2322 | if (!text_blink_ev.active) |
2322 | if (!text_blink_ev.active) |
2323 | { |
2323 | { |
2324 | text_blink_ev.start (NOW + TEXT_BLINK_INTERVAL); |
2324 | text_blink_ev.start (TEXT_BLINK_INTERVAL, TEXT_BLINK_INTERVAL); |
2325 | hidden_text = 0; |
2325 | hidden_text = 0; |
2326 | } |
2326 | } |
2327 | else if (hidden_text) |
2327 | else if (hidden_text) |
2328 | fore = back; |
2328 | fore = back; |
2329 | } |
2329 | } |
… | |
… | |
2733 | if (!delete_prop) |
2733 | if (!delete_prop) |
2734 | XDeleteProperty (dpy, win, prop); |
2734 | XDeleteProperty (dpy, win, prop); |
2735 | |
2735 | |
2736 | selection_wait = Sel_incr; |
2736 | selection_wait = Sel_incr; |
2737 | incr_buf_fill = 0; |
2737 | incr_buf_fill = 0; |
2738 | incr_ev.start (NOW + 10); |
2738 | incr_ev.start (10); |
2739 | |
2739 | |
2740 | goto bailout; |
2740 | goto bailout; |
2741 | } |
2741 | } |
2742 | |
2742 | |
2743 | if (ct.nitems == 0) |
2743 | if (ct.nitems == 0) |
… | |
… | |
2769 | goto bailout; |
2769 | goto bailout; |
2770 | } |
2770 | } |
2771 | } |
2771 | } |
2772 | else if (selection_wait == Sel_incr) |
2772 | else if (selection_wait == Sel_incr) |
2773 | { |
2773 | { |
2774 | incr_ev.start (NOW + 10); |
2774 | incr_ev.start (10); |
2775 | |
2775 | |
2776 | while (incr_buf_fill + ct.nitems > incr_buf_size) |
2776 | while (incr_buf_fill + ct.nitems > incr_buf_size) |
2777 | { |
2777 | { |
2778 | incr_buf_size = incr_buf_size ? incr_buf_size * 2 : 128*1024; |
2778 | incr_buf_size = incr_buf_size ? incr_buf_size * 2 : 128*1024; |
2779 | incr_buf = (char *)realloc (incr_buf, incr_buf_size); |
2779 | incr_buf = (char *)realloc (incr_buf, incr_buf_size); |
… | |
… | |
2819 | if (selection_wait == Sel_normal) |
2819 | if (selection_wait == Sel_normal) |
2820 | selection_wait = Sel_none; |
2820 | selection_wait = Sel_none; |
2821 | } |
2821 | } |
2822 | |
2822 | |
2823 | void |
2823 | void |
2824 | rxvt_term::incr_cb (time_watcher &w) NOTHROW |
2824 | rxvt_term::incr_cb (ev::timer &w, int revents) NOTHROW |
2825 | { |
2825 | { |
2826 | selection_wait = Sel_none; |
2826 | selection_wait = Sel_none; |
2827 | |
2827 | |
2828 | incr_buf_size = 0; |
2828 | incr_buf_size = 0; |
2829 | free (incr_buf); |
2829 | free (incr_buf); |