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.96 by root, Sat Jan 26 12:12:38 2008 UTC

550 XEvent xev; 550 XEvent xev;
551 XNextEvent (dpy, &xev); 551 XNextEvent (dpy, &xev);
552 552
553#ifdef USE_XIM 553#ifdef USE_XIM
554 if (!XFilterEvent (&xev, None)) 554 if (!XFilterEvent (&xev, None))
555#endif
555 { 556 {
556 if (xev.type == PropertyNotify 557 if (xev.type == PropertyNotify
557 && xev.xany.window == root 558 && xev.xany.window == root
558 && xev.xproperty.atom == xa[XA_XIM_SERVERS]) 559 && xev.xproperty.atom == xa[XA_XIM_SERVERS])
559 im_change_check (); 560 im_change_check ();
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 {
566 if (!xw[i]) 567 if (!xw[i])
567 xw.erase_unordered (i); 568 xw.erase_unordered (i);
568 else if (xw[i]->window == xev.xany.window) 569 else if (xw[i]->window == xev.xany.window)
569 xw[i]->call (xev); 570 xw[i]->call (xev);
570 } 571 }
571#ifdef USE_XIM
572 } 572 }
573#endif
574 } 573 }
575} 574}
576 575
577void rxvt_display::flush_cb (ev::prepare &w, int revents) 576void rxvt_display::flush_cb (ev::prepare &w, int revents)
578{ 577{
578 XFlush (dpy);
579 if (XEventsQueued (dpy, QueuedAfterReading))
580 x_cb(x_ev,0);//D
581 XFlush (dpy);
582 if (XEventsQueued (dpy, QueuedAfterReading))
583 x_cb(x_ev,0);//D
584 XFlush (dpy);
579 w.stop (); 585 w.stop ();
580 XFlush (dpy);
581} 586}
582 587
583void rxvt_display::reg (xevent_watcher *w) 588void rxvt_display::reg (xevent_watcher *w)
584{ 589{
585 if (!w->active) 590 if (!w->active)
673} 678}
674 679
675bool 680bool
676rxvt_color::alloc (rxvt_screen *screen, const rgba &color) 681rxvt_color::alloc (rxvt_screen *screen, const rgba &color)
677{ 682{
678 //TODO: only supports 24 bit truecolour 683 //TODO: only supports 24 bit
679 int alpha = color.a >= 0xff00 ? 0xffff : color.a; 684 int alpha = color.a >= 0xff00 ? 0xffff : color.a;
680 685
681#if XFT 686#if XFT
682 XRenderPictFormat *format; 687 XRenderPictFormat *format;
683 688

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines