… | |
… | |
573 | } |
573 | } |
574 | } |
574 | } |
575 | |
575 | |
576 | void rxvt_display::flush () |
576 | void rxvt_display::flush () |
577 | { |
577 | { |
|
|
578 | flush_ev.start (); |
|
|
579 | } |
|
|
580 | |
|
|
581 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
|
|
582 | { |
|
|
583 | w.stop (); |
578 | XFlush (dpy); |
584 | XFlush (dpy); |
579 | } |
|
|
580 | |
|
|
581 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
|
|
582 | { |
|
|
583 | flush (); |
|
|
584 | } |
585 | } |
585 | |
586 | |
586 | void rxvt_display::reg (xevent_watcher *w) |
587 | void rxvt_display::reg (xevent_watcher *w) |
587 | { |
588 | { |
588 | if (!w->active) |
589 | if (!w->active) |