ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtcolor.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtcolor.C (file contents):
Revision 1.4 by pcg, Mon Feb 9 07:11:49 2004 UTC vs.
Revision 1.5 by pcg, Tue Feb 10 00:40:39 2004 UTC

7 7
8///////////////////////////////////////////////////////////////////////////// 8/////////////////////////////////////////////////////////////////////////////
9 9
10rxvt_display::rxvt_display (const char *name) 10rxvt_display::rxvt_display (const char *name)
11: x_watcher (this, &rxvt_display::x_event) 11: x_watcher (this, &rxvt_display::x_event)
12, selection_owner (0)
12{ 13{
13 this->name = STRDUP (name); 14 this->name = STRDUP (name);
14} 15}
15 16
16rxvt_display::~rxvt_display () 17rxvt_display::~rxvt_display ()
89{ 90{
90 if (w->active) 91 if (w->active)
91 xw[w->active - 1] = 0; 92 xw[w->active - 1] = 0;
92} 93}
93 94
95void rxvt_display::set_selection_owner (rxvt_term *owner)
96{
97 if (selection_owner && selection_owner != owner)
98 selection_owner->selection_clear ();
99
100 selection_owner = owner;
101}
102
94///////////////////////////////////////////////////////////////////////////// 103/////////////////////////////////////////////////////////////////////////////
95 104
96rxvt_displays displays; 105rxvt_displays displays;
97 106
98rxvt_display *rxvt_displays::get (const char *name) 107rxvt_display *rxvt_displays::get (const char *name)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines