… | |
… | |
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; |
… | |
… | |
234 | //public |
235 | //public |
235 | Display *dpy; |
236 | Display *dpy; |
236 | int screen; |
237 | int screen; |
237 | Window root; |
238 | Window root; |
238 | rxvt_term *selection_owner; |
239 | rxvt_term *selection_owner; |
|
|
240 | rxvt_term *clipboard_owner; |
239 | Atom xa[NUM_XA]; |
241 | Atom xa[NUM_XA]; |
240 | bool is_local; |
242 | bool is_local; |
241 | #ifdef POINTER_BLANK |
243 | #ifdef POINTER_BLANK |
242 | Cursor blank_cursor; |
244 | Cursor blank_cursor; |
243 | #endif |
245 | #endif |
… | |
… | |
252 | { |
254 | { |
253 | flush_ev.start (); |
255 | flush_ev.start (); |
254 | } |
256 | } |
255 | |
257 | |
256 | Atom atom (const char *name); |
258 | Atom atom (const char *name); |
257 | void set_selection_owner (rxvt_term *owner); |
259 | void set_selection_owner (rxvt_term *owner, bool clipboard); |
258 | |
260 | |
259 | void reg (xevent_watcher *w); |
261 | void reg (xevent_watcher *w); |
260 | void unreg (xevent_watcher *w); |
262 | void unreg (xevent_watcher *w); |
261 | |
263 | |
262 | #ifdef USE_XIM |
264 | #ifdef USE_XIM |
… | |
… | |
267 | void put_xim (rxvt_xim *xim); |
269 | void put_xim (rxvt_xim *xim); |
268 | #endif |
270 | #endif |
269 | }; |
271 | }; |
270 | |
272 | |
271 | #ifdef USE_XIM |
273 | #ifdef USE_XIM |
272 | struct im_watcher : rxvt_watcher, callback<void (void)> { |
274 | struct im_watcher : rxvt_watcher, callback<void (void)> |
|
|
275 | { |
273 | void start (rxvt_display *display) |
276 | void start (rxvt_display *display) |
274 | { |
277 | { |
275 | display->reg (this); |
278 | display->reg (this); |
276 | } |
279 | } |
277 | |
280 | |