--- rxvt-unicode/src/rxvtcolor.C 2004/02/09 07:11:49 1.4 +++ rxvt-unicode/src/rxvtcolor.C 2004/02/10 00:40:39 1.5 @@ -9,6 +9,7 @@ rxvt_display::rxvt_display (const char *name) : x_watcher (this, &rxvt_display::x_event) +, selection_owner (0) { this->name = STRDUP (name); } @@ -91,6 +92,14 @@ xw[w->active - 1] = 0; } +void rxvt_display::set_selection_owner (rxvt_term *owner) +{ + if (selection_owner && selection_owner != owner) + selection_owner->selection_clear (); + + selection_owner = owner; +} + ///////////////////////////////////////////////////////////////////////////// rxvt_displays displays;