… | |
… | |
573 | } |
573 | } |
574 | } |
574 | } |
575 | |
575 | |
576 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
576 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
577 | { |
577 | { |
578 | XFlush (dpy); |
|
|
579 | if (XEventsQueued (dpy, QueuedAfterReading)) |
578 | while (XEventsQueued (dpy, QueuedAfterFlush)) |
|
|
579 | { |
580 | x_cb(x_ev,0);//D |
580 | x_cb(x_ev,0);//D |
581 | XFlush (dpy); |
581 | } |
582 | if (XEventsQueued (dpy, QueuedAfterReading)) |
582 | |
583 | x_cb(x_ev,0);//D |
|
|
584 | XFlush (dpy); |
|
|
585 | w.stop (); |
583 | w.stop (); |
586 | } |
584 | } |
587 | |
585 | |
588 | void rxvt_display::reg (xevent_watcher *w) |
586 | void rxvt_display::reg (xevent_watcher *w) |
589 | { |
587 | { |