#endif
#ifdef HAVE_AFTERIMAGE
+ //TODO: is this neccessary for future versions who check the global var whern the macro doesn'T set it?
::dpy = NULL ; /* init global var from libAfter... */
asv = AFTERIMAGE_DPY_OP (create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL));
#endif
class keyboard_manager;
#endif
+/* to get libAfterImage to work with multiple displays we use that hack : */
+/* should not need that with libAfterImage version >= 1.15 */
+#define AFTERIMAGE_DPY_OP(op) ((::dpy = dpy), (op))
+
struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
// special markers with magic addresses
bgPixmap_t bgPixmap;
#ifdef HAVE_AFTERIMAGE
struct ASVisual *asv;
- /* to get libAfterImage to work with multiple displays we use that hack : */
- /* should not need that with libAfterImage version >= 1.15 */
-#define AFTERIMAGE_DPY_OP(_op) ({::dpy = dpy; _op;})
ASImageManager *asimman;
ASImage *original_asim;
struct { unsigned int width, height; } xpmAttr; /* all we need is width/height */