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.92 by root, Sat Jan 26 10:15:20 2008 UTC

548 while (XEventsQueued (dpy, QueuedAfterReading)) 548 while (XEventsQueued (dpy, QueuedAfterReading))
549 { 549 {
550 XEvent xev; 550 XEvent xev;
551 XNextEvent (dpy, &xev); 551 XNextEvent (dpy, &xev);
552 552
553 flush_ev.start ();
554
553#ifdef USE_XIM 555#ifdef USE_XIM
554 if (!XFilterEvent (&xev, None)) 556 if (!XFilterEvent (&xev, None))
557#endif
555 { 558 {
556 if (xev.type == PropertyNotify 559 if (xev.type == PropertyNotify
557 && xev.xany.window == root 560 && xev.xany.window == root
558 && xev.xproperty.atom == xa[XA_XIM_SERVERS]) 561 && xev.xproperty.atom == xa[XA_XIM_SERVERS])
559 im_change_check (); 562 im_change_check ();
560#endif
561 if (xev.type == MappingNotify) 563 if (xev.type == MappingNotify)
562 XRefreshKeyboardMapping (&xev.xmapping); 564 XRefreshKeyboardMapping (&xev.xmapping);
563 565
564 for (int i = xw.size (); i--; ) 566 for (int i = xw.size (); i--; )
565 { 567 {
566 if (!xw[i]) 568 if (!xw[i])
567 xw.erase_unordered (i); 569 xw.erase_unordered (i);
568 else if (xw[i]->window == xev.xany.window) 570 else if (xw[i]->window == xev.xany.window)
569 xw[i]->call (xev); 571 xw[i]->call (xev);
570 } 572 }
571#ifdef USE_XIM
572 } 573 }
573#endif
574 } 574 }
575}
576 575
576 XFlush (dpy);
577}
578
577void rxvt_display::flush_cb (ev::prepare &w, int revents) 579void rxvt_display::flush_cb (ev::idle &w, int revents)
578{ 580{
579 w.stop (); 581 w.stop ();
580 XFlush (dpy); 582 XFlush (dpy);
581} 583}
582 584
673} 675}
674 676
675bool 677bool
676rxvt_color::alloc (rxvt_screen *screen, const rgba &color) 678rxvt_color::alloc (rxvt_screen *screen, const rgba &color)
677{ 679{
678 //TODO: only supports 24 bit truecolour 680 //TODO: only supports 24 bit
679 int alpha = color.a >= 0xff00 ? 0xffff : color.a; 681 int alpha = color.a >= 0xff00 ? 0xffff : color.a;
680 682
681#if XFT 683#if XFT
682 XRenderPictFormat *format; 684 XRenderPictFormat *format;
683 685

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines