--- rxvt-unicode/src/command.C 2012/06/11 14:45:53 1.522 +++ rxvt-unicode/src/command.C 2012/06/29 13:57:26 1.523 @@ -1469,13 +1469,16 @@ bool want_position_change = SHOULD_INVOKE (HOOK_POSITION_CHANGE); + bool moved = false; #ifdef HAVE_BG_PIXMAP if (bg_window_position_sensitive ()) - want_position_change = true; + { + want_position_change = true; + if (!(bg_flags & BG_IS_VALID)) + moved = true; + } #endif - bool moved = false; - if (want_position_change) { int x, y; @@ -1495,9 +1498,6 @@ HOOK_INVOKE ((this, HOOK_POSITION_CHANGE, DT_INT, x, DT_INT, y, DT_END)); moved = true; } - - if (!(bg_flags & BG_IS_VALID)) - moved = true; } if (szHint.width != ev.xconfigure.width || szHint.height != ev.xconfigure.height)