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.103 by root, Fri Sep 4 15:40:13 2009 UTC vs.
Revision 1.104 by sf-exg, Sun Jan 24 21:53:13 2010 UTC

297///////////////////////////////////////////////////////////////////////////// 297/////////////////////////////////////////////////////////////////////////////
298 298
299rxvt_display::rxvt_display (const char *id) 299rxvt_display::rxvt_display (const char *id)
300: refcounted (id) 300: refcounted (id)
301, selection_owner (0) 301, selection_owner (0)
302, clipboard_owner (0)
302{ 303{
303 x_ev .set<rxvt_display, &rxvt_display::x_cb > (this); 304 x_ev .set<rxvt_display, &rxvt_display::x_cb > (this);
304 flush_ev.set<rxvt_display, &rxvt_display::flush_cb> (this); 305 flush_ev.set<rxvt_display, &rxvt_display::flush_cb> (this);
305} 306}
306 307
600 xw[w->active - 1] = 0; 601 xw[w->active - 1] = 0;
601 w->active = 0; 602 w->active = 0;
602 } 603 }
603} 604}
604 605
605void rxvt_display::set_selection_owner (rxvt_term *owner) 606void rxvt_display::set_selection_owner (rxvt_term *owner, bool clipboard)
606{ 607{
608 rxvt_term * &cur_owner = !clipboard ? selection_owner : clipboard_owner;
609
607 if (selection_owner && selection_owner != owner) 610 if (cur_owner && cur_owner != owner)
608 { 611 {
609 rxvt_term *owner = selection_owner;
610
611 owner->selection_clear (); 612 cur_owner->selection_clear (clipboard);
612 owner->flush (); 613 cur_owner->flush ();
613 } 614 }
614 615
615 selection_owner = owner; 616 cur_owner = owner;
616} 617}
617 618
618#ifdef USE_XIM 619#ifdef USE_XIM
619 620
620void rxvt_display::reg (im_watcher *w) 621void rxvt_display::reg (im_watcher *w)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines