… | |
… | |
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 |
… | |
… | |
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 | |
… | |
… | |
332 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
335 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
333 | |
336 | |
334 | bool is_opaque () const |
337 | bool is_opaque () const |
335 | { |
338 | { |
336 | #if XFT |
339 | #if XFT |
337 | //TODO: only supports 24 bit truecolour |
340 | return c.color.alpha == rgba::MAX_CC; |
338 | return c.color.alpha < 0xff00; |
|
|
339 | #else |
341 | #else |
340 | return 1; |
342 | return 1; |
341 | #endif |
343 | #endif |
342 | } |
344 | } |
343 | |
345 | |