… | |
… | |
69 | |
69 | |
70 | #include <X11/cursorfont.h> |
70 | #include <X11/cursorfont.h> |
71 | #include <X11/keysym.h> |
71 | #include <X11/keysym.h> |
72 | #include <X11/keysymdef.h> |
72 | #include <X11/keysymdef.h> |
73 | #include <X11/Xatom.h> |
73 | #include <X11/Xatom.h> |
74 | |
|
|
75 | #ifdef HAVE_AFTERIMAGE |
|
|
76 | # include <afterimage.h> |
|
|
77 | # undef min |
|
|
78 | # undef max |
|
|
79 | #endif |
|
|
80 | |
74 | |
81 | #ifdef HAVE_PIXBUF |
75 | #ifdef HAVE_PIXBUF |
82 | # include <gdk-pixbuf/gdk-pixbuf.h> |
76 | # include <gdk-pixbuf/gdk-pixbuf.h> |
83 | #endif |
77 | #endif |
84 | |
78 | |
… | |
… | |
1176 | |
1170 | |
1177 | bool bg_render (); |
1171 | bool bg_render (); |
1178 | void bg_invalidate () |
1172 | void bg_invalidate () |
1179 | { |
1173 | { |
1180 | bg_flags &= ~BG_IS_VALID; |
1174 | bg_flags &= ~BG_IS_VALID; |
1181 | } |
|
|
1182 | #endif |
|
|
1183 | #ifdef HAVE_AFTERIMAGE |
|
|
1184 | ASImage *original_asim; |
|
|
1185 | ASVisual *asv; |
|
|
1186 | ASImageManager *asimman; |
|
|
1187 | |
|
|
1188 | void init_asv () |
|
|
1189 | { |
|
|
1190 | if (!asv) |
|
|
1191 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
|
|
1192 | } |
1175 | } |
1193 | #endif |
1176 | #endif |
1194 | #ifdef HAVE_PIXBUF |
1177 | #ifdef HAVE_PIXBUF |
1195 | GdkPixbuf *pixbuf; |
1178 | GdkPixbuf *pixbuf; |
1196 | bool pixbuf_to_pixmap (GdkPixbuf *pixbuf, Pixmap pixmap, GC gc, |
1179 | bool pixbuf_to_pixmap (GdkPixbuf *pixbuf, Pixmap pixmap, GC gc, |