… | |
… | |
569 | else if (xw[i]->window == xev.xany.window) |
569 | else if (xw[i]->window == xev.xany.window) |
570 | xw[i]->call (xev); |
570 | xw[i]->call (xev); |
571 | } |
571 | } |
572 | } |
572 | } |
573 | } |
573 | } |
574 | |
|
|
575 | flush_ev.start (); |
|
|
576 | } |
574 | } |
577 | |
575 | |
578 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
576 | void rxvt_display::flush_cb (ev::prepare &w, int revents) |
579 | { |
577 | { |
580 | x_cb(x_ev,0);//D |
578 | while (XEventsQueued (dpy, QueuedAfterFlush)) |
581 | XFlush (dpy); |
579 | x_cb (x_ev, EV_READ); |
|
|
580 | |
582 | w.stop (); |
581 | w.stop (); |
583 | } |
582 | } |
584 | |
583 | |
585 | void rxvt_display::reg (xevent_watcher *w) |
584 | void rxvt_display::reg (xevent_watcher *w) |
586 | { |
585 | { |