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.89 by root, Wed Jan 23 09:23:39 2008 UTC vs.
Revision 1.99 by root, Sat Jan 26 13:31:09 2008 UTC

556 if (xev.type == PropertyNotify 556 if (xev.type == PropertyNotify
557 && xev.xany.window == root 557 && xev.xany.window == root
558 && xev.xproperty.atom == xa[XA_XIM_SERVERS]) 558 && xev.xproperty.atom == xa[XA_XIM_SERVERS])
559 im_change_check (); 559 im_change_check ();
560#endif 560#endif
561
561 if (xev.type == MappingNotify) 562 if (xev.type == MappingNotify)
562 XRefreshKeyboardMapping (&xev.xmapping); 563 XRefreshKeyboardMapping (&xev.xmapping);
563 564
564 for (int i = xw.size (); i--; ) 565 for (int i = xw.size (); i--; )
565 { 566 {
574 } 575 }
575} 576}
576 577
577void rxvt_display::flush_cb (ev::prepare &w, int revents) 578void rxvt_display::flush_cb (ev::prepare &w, int revents)
578{ 579{
580 while (XEventsQueued (dpy, QueuedAfterFlush))
581 x_cb (x_ev, EV_READ);
582
579 w.stop (); 583 w.stop ();
580 XFlush (dpy);
581} 584}
582 585
583void rxvt_display::reg (xevent_watcher *w) 586void rxvt_display::reg (xevent_watcher *w)
584{ 587{
585 if (!w->active) 588 if (!w->active)
673} 676}
674 677
675bool 678bool
676rxvt_color::alloc (rxvt_screen *screen, const rgba &color) 679rxvt_color::alloc (rxvt_screen *screen, const rgba &color)
677{ 680{
678 //TODO: only supports 24 bit truecolour 681 //TODO: only supports 24 bit
679 int alpha = color.a >= 0xff00 ? 0xffff : color.a; 682 int alpha = color.a >= 0xff00 ? 0xffff : color.a;
680 683
681#if XFT 684#if XFT
682 XRenderPictFormat *format; 685 XRenderPictFormat *format;
683 686

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines