--- rxvt-unicode/src/init.C 2007/06/26 00:40:18 1.189 +++ rxvt-unicode/src/init.C 2007/08/03 05:33:04 1.198 @@ -185,9 +185,6 @@ pix_colors_unfocused = new rxvt_color [TOTAL_COLORS]; #endif -#if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) - pixmap = None; -#endif MEvent.time = CurrentTime; MEvent.button = AnyButton; @@ -204,7 +201,10 @@ refresh_type = SLOW_REFRESH; oldcursor.row = oldcursor.col = -1; +#if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) #ifdef XPM_BACKGROUND + bgPixmap.original_asim = NULL; +#endif /* bgPixmap.w = bgPixmap.h = 0; */ bgPixmap.x = bgPixmap.y = 0; bgPixmap.pixmap = None; @@ -318,6 +318,9 @@ select_visual (strtol (rs[Rs_depth], 0, 0)); #endif +#ifdef HAVE_AFTERIMAGE + asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); +#endif free (r_argv); for (int i = NUM_RESOURCES; i--; ) @@ -881,7 +884,7 @@ XClassHint classHint; XWMHints wmHint; #if ENABLE_FRILLS - MWMHints mwmhints; + MWMHints mwmhints = { }; #endif XGCValues gcvalue; XSetWindowAttributes attributes; @@ -1037,11 +1040,7 @@ vt_ev.start (display, vt); #ifdef XPM_BACKGROUND - if (rs[Rs_backgroundPixmap] != NULL -#ifndef HAVE_AFTERIMAGE - && !option (Opt_transparent) -#endif - ) + if (rs[Rs_backgroundPixmap] != NULL) { const char *p = rs[Rs_backgroundPixmap];