… | |
… | |
12 | #include "rxvtlib.h" |
12 | #include "rxvtlib.h" |
13 | #include "rxvtstl.h" |
13 | #include "rxvtstl.h" |
14 | |
14 | |
15 | #include "callback.h" |
15 | #include "callback.h" |
16 | |
16 | |
17 | struct rxvt_vars; |
17 | struct rxvt_term; |
18 | |
18 | |
19 | struct xevent_watcher; |
19 | struct xevent_watcher; |
20 | |
20 | |
21 | struct rxvt_display { |
21 | struct rxvt_display { |
22 | int referenced; |
22 | int referenced; |
23 | char *name; |
23 | char *name; |
|
|
24 | |
|
|
25 | rxvt_term *selection_owner; |
24 | |
26 | |
25 | io_manager_vec<xevent_watcher> xw; |
27 | io_manager_vec<xevent_watcher> xw; |
26 | io_watcher x_watcher; void x_event (io_watcher &w, short revents); |
28 | io_watcher x_watcher; void x_event (io_watcher &w, short revents); |
27 | |
29 | |
28 | //public |
30 | //public |
… | |
… | |
39 | void reg (xevent_watcher *w); |
41 | void reg (xevent_watcher *w); |
40 | void unreg (xevent_watcher *w); |
42 | void unreg (xevent_watcher *w); |
41 | |
43 | |
42 | rxvt_display (const char *name); |
44 | rxvt_display (const char *name); |
43 | ~rxvt_display (); |
45 | ~rxvt_display (); |
|
|
46 | |
|
|
47 | void set_selection_owner (rxvt_term *owner); |
44 | }; |
48 | }; |
45 | |
49 | |
46 | struct xevent_watcher : watcher, callback1<void, XEvent &> { |
50 | struct xevent_watcher : watcher, callback1<void, XEvent &> { |
47 | Window window; |
51 | Window window; |
48 | |
52 | |