--- rxvt-unicode/src/main.C 2007/08/17 22:01:32 1.244 +++ rxvt-unicode/src/main.C 2007/09/12 19:51:41 1.248 @@ -542,14 +542,10 @@ else bgPixmap.set_defaultGeometry (); - bgPixmap.set_file (rs[Rs_backgroundPixmap]); + if (bgPixmap.set_file (rs[Rs_backgroundPixmap])) + if (!bgPixmap.window_position_sensitive ()) + update_background (); } - /* do not want to render Pixmap yet if we are size/position dependant - - * wait for ConfigureNotify at least - * TODO: this does not work for some reason when transparency is disabled !!!! - */ - if (!bgPixmap.window_size_sensitive ()) - update_background(); #endif } #endif @@ -1150,10 +1146,9 @@ window_vt_x, window_vt_y, width, height); -#ifdef XPM_BACKGROUND - /* TODO: replace with update_pixmap() that should unify transparency and bg image handling ! */ +#ifdef HAVE_BG_PIXMAP if (bgPixmap.window_size_sensitive ()) - update_background (); + update_background (); #endif scr_clear ();