… | |
… | |
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)) |
580 | x_cb(x_ev,0);//D |
579 | x_cb (x_ev, EV_READ); |
581 | XFlush (dpy); |
580 | |
582 | if (XEventsQueued (dpy, QueuedAfterReading)) |
|
|
583 | x_cb(x_ev,0);//D |
|
|
584 | XFlush (dpy); |
|
|
585 | w.stop (); |
581 | w.stop (); |
586 | } |
582 | } |
587 | |
583 | |
588 | void rxvt_display::reg (xevent_watcher *w) |
584 | void rxvt_display::reg (xevent_watcher *w) |
589 | { |
585 | { |