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.82 by root, Fri Dec 14 05:25:26 2007 UTC vs.
Revision 1.87 by root, Mon Dec 24 08:21:39 2007 UTC

501 501
502#ifdef POINTER_BLANK 502#ifdef POINTER_BLANK
503 XFreeCursor (dpy, blank_cursor); 503 XFreeCursor (dpy, blank_cursor);
504#endif 504#endif
505 x_ev.stop (); 505 x_ev.stop ();
506 flush_ev.stop ();
506#ifdef USE_XIM 507#ifdef USE_XIM
507 xims.clear (); 508 xims.clear ();
508#endif 509#endif
509 XCloseDisplay (dpy); 510 XCloseDisplay (dpy);
510} 511}
571 } 572 }
572#endif 573#endif
573 } 574 }
574} 575}
575 576
576void rxvt_display::flush () 577void rxvt_display::flush_cb (ev::prepare &w, int revents)
577{ 578{
579 w.stop ();
578 XFlush (dpy); 580 XFlush (dpy);
579}
580
581void rxvt_display::flush_cb (ev::prepare &w, int revents)
582{
583 flush ();
584} 581}
585 582
586void rxvt_display::reg (xevent_watcher *w) 583void rxvt_display::reg (xevent_watcher *w)
587{ 584{
588 if (!w->active) 585 if (!w->active)
602} 599}
603 600
604void rxvt_display::set_selection_owner (rxvt_term *owner) 601void rxvt_display::set_selection_owner (rxvt_term *owner)
605{ 602{
606 if (selection_owner && selection_owner != owner) 603 if (selection_owner && selection_owner != owner)
604 {
605 rxvt_term *owner = selection_owner;
606
607 selection_owner->selection_clear (); 607 owner->selection_clear ();
608 owner->flush ();
609 }
608 610
609 selection_owner = owner; 611 selection_owner = owner;
610} 612}
611 613
612#ifdef USE_XIM 614#ifdef USE_XIM

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines