ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.C
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.77 by sasha, Wed Nov 14 22:25:42 2007 UTC vs.
Revision 1.78 by root, Fri Nov 23 07:59:14 2007 UTC

540} 540}
541#endif 541#endif
542 542
543void rxvt_display::x_cb (ev::io &w, int revents) 543void rxvt_display::x_cb (ev::io &w, int revents)
544{ 544{
545 do 545 while (XEventsQueued (dpy, QueuedAfterReading))
546 { 546 {
547 XEvent xev; 547 XEvent xev;
548 XNextEvent (dpy, &xev); 548 XNextEvent (dpy, &xev);
549 549
550#ifdef USE_XIM 550#ifdef USE_XIM
567 } 567 }
568#ifdef USE_XIM 568#ifdef USE_XIM
569 } 569 }
570#endif 570#endif
571 } 571 }
572 while (XEventsQueued (dpy, QueuedAlready));
573 572
574 XFlush (dpy); 573 XFlush (dpy);
575} 574}
576 575
577void rxvt_display::flush () 576void rxvt_display::flush ()
578{ 577{
579 if (XEventsQueued (dpy, QueuedAlready))
580 x_cb (x_ev, ev::READ); 578 x_cb (x_ev, ev::READ);
581
582 XFlush (dpy);
583} 579}
584 580
585void rxvt_display::reg (xevent_watcher *w) 581void rxvt_display::reg (xevent_watcher *w)
586{ 582{
587 if (!w->active) 583 if (!w->active)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines