… | |
… | |
65 | #endif |
65 | #endif |
66 | #if USE_XIM |
66 | #if USE_XIM |
67 | XA_WM_LOCALE_NAME, |
67 | XA_WM_LOCALE_NAME, |
68 | XA_XIM_SERVERS, |
68 | XA_XIM_SERVERS, |
69 | #endif |
69 | #endif |
70 | #if TRANSPARENT |
70 | #if ENABLE_TRANSPARENCY |
71 | XA_XROOTPMAP_ID, |
71 | XA_XROOTPMAP_ID, |
72 | XA_ESETROOT_PMAP_ID, |
72 | XA_ESETROOT_PMAP_ID, |
73 | #endif |
73 | #endif |
74 | #if ENABLE_XEMBED |
74 | #if ENABLE_XEMBED |
75 | XA_XEMBED, |
75 | XA_XEMBED, |
… | |
… | |
187 | void set (rxvt_display *disp); |
187 | void set (rxvt_display *disp); |
188 | void select_visual (int bitdepth); |
188 | void select_visual (int bitdepth); |
189 | void clear (); |
189 | void clear (); |
190 | }; |
190 | }; |
191 | |
191 | |
192 | #ifdef HAVE_AFTERIMAGE |
|
|
193 | struct ASVisual; |
|
|
194 | #endif |
|
|
195 | |
|
|
196 | struct rxvt_display : refcounted { |
192 | struct rxvt_display : refcounted { |
197 | io_manager_vec<xevent_watcher> xw; |
193 | io_manager_vec<xevent_watcher> xw; |
198 | |
194 | |
199 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
195 | io_watcher x_ev; void x_cb (io_watcher &w, short revents); |
200 | |
196 | |
… | |
… | |
208 | |
204 | |
209 | //public |
205 | //public |
210 | Display *dpy; |
206 | Display *dpy; |
211 | int screen; |
207 | int screen; |
212 | Window root; |
208 | Window root; |
213 | #ifdef HAVE_AFTERIMAGE |
|
|
214 | struct ASVisual *asv; |
|
|
215 | #endif |
|
|
216 | rxvt_term *selection_owner; |
209 | rxvt_term *selection_owner; |
217 | Atom xa[NUM_XA]; |
210 | Atom xa[NUM_XA]; |
218 | bool is_local; |
211 | bool is_local; |
219 | #ifdef POINTER_BLANK |
212 | #ifdef POINTER_BLANK |
220 | Cursor blank_cursor; |
213 | Cursor blank_cursor; |
… | |
… | |
313 | bool alloc (rxvt_screen *screen, const rgba &color); |
306 | bool alloc (rxvt_screen *screen, const rgba &color); |
314 | void free (rxvt_screen *screen); |
307 | void free (rxvt_screen *screen); |
315 | |
308 | |
316 | void get (rgba &color); |
309 | void get (rgba &color); |
317 | void get (XColor &color); |
310 | void get (XColor &color); |
318 | |
311 | |
319 | bool set (rxvt_screen *screen, const char *name); |
312 | bool set (rxvt_screen *screen, const char *name); |
320 | bool set (rxvt_screen *screen, const rgba &color); |
313 | bool set (rxvt_screen *screen, const rgba &color); |
321 | |
314 | |
322 | void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); |
315 | void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); |
323 | }; |
316 | }; |