… | |
… | |
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 | { |
|
|
578 | XFlush (dpy); |
|
|
579 | if (XEventsQueued (dpy, QueuedAfterReading)) |
|
|
580 | x_cb(x_ev,0);//D |
|
|
581 | XFlush (dpy); |
|
|
582 | if (XEventsQueued (dpy, QueuedAfterReading)) |
580 | x_cb(x_ev,0);//D |
583 | x_cb(x_ev,0);//D |
581 | XFlush (dpy); |
584 | XFlush (dpy); |
582 | w.stop (); |
585 | w.stop (); |
583 | } |
586 | } |
584 | |
587 | |