… | |
… | |
22 | struct refcounted { |
22 | struct refcounted { |
23 | int referenced; |
23 | int referenced; |
24 | char *id; |
24 | char *id; |
25 | |
25 | |
26 | refcounted (const char *id); |
26 | refcounted (const char *id); |
27 | bool init () { } |
27 | bool init () { return false; } |
28 | ~refcounted (); |
28 | ~refcounted (); |
29 | }; |
29 | }; |
30 | |
30 | |
31 | template<class T> |
31 | template<class T> |
32 | struct refcache : vector<T *> { |
32 | struct refcache : vector<T *> { |
… | |
… | |
50 | }; |
50 | }; |
51 | |
51 | |
52 | struct rxvt_display : refcounted { |
52 | struct rxvt_display : refcounted { |
53 | Atom xa_xim_servers; |
53 | Atom xa_xim_servers; |
54 | |
54 | |
55 | rxvt_term *selection_owner; |
|
|
56 | |
|
|
57 | io_manager_vec<xevent_watcher> xw; |
55 | io_manager_vec<xevent_watcher> xw; |
58 | |
56 | |
59 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
57 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
60 | |
58 | |
61 | refcache<rxvt_xim> xims; |
59 | refcache<rxvt_xim> xims; |
… | |
… | |
68 | int depth; |
66 | int depth; |
69 | int screen; |
67 | int screen; |
70 | Visual *visual; |
68 | Visual *visual; |
71 | Colormap cmap; |
69 | Colormap cmap; |
72 | Window root; |
70 | Window root; |
|
|
71 | rxvt_term *selection_owner; |
73 | |
72 | |
74 | rxvt_display (const char *id); |
73 | rxvt_display (const char *id); |
75 | bool init (); |
74 | bool init (); |
76 | ~rxvt_display (); |
75 | ~rxvt_display (); |
77 | |
76 | |