… | |
… | |
59 | #if ENABLE_EWMH |
59 | #if ENABLE_EWMH |
60 | XA_NET_WM_PID, |
60 | XA_NET_WM_PID, |
61 | XA_NET_WM_NAME, |
61 | XA_NET_WM_NAME, |
62 | XA_NET_WM_ICON_NAME, |
62 | XA_NET_WM_ICON_NAME, |
63 | XA_NET_WM_PING, |
63 | XA_NET_WM_PING, |
|
|
64 | XA_NET_WM_ICON, |
64 | #endif |
65 | #endif |
65 | #if USE_XIM |
66 | #if USE_XIM |
66 | XA_WM_LOCALE_NAME, |
67 | XA_WM_LOCALE_NAME, |
67 | XA_XIM_SERVERS, |
68 | XA_XIM_SERVERS, |
68 | #endif |
69 | #endif |
… | |
… | |
218 | |
219 | |
219 | struct rxvt_display : refcounted |
220 | struct rxvt_display : refcounted |
220 | { |
221 | { |
221 | event_vec<xevent_watcher> xw; |
222 | event_vec<xevent_watcher> xw; |
222 | |
223 | |
223 | ev::idle flush_ev; void flush_cb (ev::idle &w, int revents); |
224 | ev::prepare flush_ev; void flush_cb (ev::prepare &w, int revents); |
224 | ev::io x_ev ; void x_cb (ev::io &w, int revents); |
225 | ev::io x_ev ; void x_cb (ev::io &w, int revents); |
225 | |
226 | |
226 | #ifdef USE_XIM |
227 | #ifdef USE_XIM |
227 | refcache<rxvt_xim> xims; |
228 | refcache<rxvt_xim> xims; |
228 | vector<im_watcher *> imw; |
229 | vector<im_watcher *> imw; |
… | |
… | |
267 | void put_xim (rxvt_xim *xim); |
268 | void put_xim (rxvt_xim *xim); |
268 | #endif |
269 | #endif |
269 | }; |
270 | }; |
270 | |
271 | |
271 | #ifdef USE_XIM |
272 | #ifdef USE_XIM |
272 | struct im_watcher : rxvt_watcher, callback<void (void)> { |
273 | struct im_watcher : rxvt_watcher, callback<void (void)> |
|
|
274 | { |
273 | void start (rxvt_display *display) |
275 | void start (rxvt_display *display) |
274 | { |
276 | { |
275 | display->reg (this); |
277 | display->reg (this); |
276 | } |
278 | } |
277 | |
279 | |