… | |
… | |
7 | |
7 | |
8 | ///////////////////////////////////////////////////////////////////////////// |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | |
9 | |
10 | rxvt_display::rxvt_display (const char *name) |
10 | rxvt_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 | |
16 | rxvt_display::~rxvt_display () |
17 | rxvt_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 | |
|
|
95 | void 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 | |
96 | rxvt_displays displays; |
105 | rxvt_displays displays; |
97 | |
106 | |
98 | rxvt_display *rxvt_displays::get (const char *name) |
107 | rxvt_display *rxvt_displays::get (const char *name) |