repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 6f78df65f673186f9f5d7476bff3ed8e810fdcbc:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 6f78df65f673186f9f5d7476bff3ed8e810fdcbc
Author: Emanuele Giaquinta 
Date:   Sun Aug 21 20:13:58 2011 +0000

    When the window is unmapped, inhibit updates of the bg image in all
    cases rather than only on window move.

diff --git a/src/command.C b/src/command.C
index 2a33dc0f6124e9f8b8c3ca92205f6c32583d8b13..
index ..cf04e90dcbd9462323d099f892a3d18ed684048f 100644
--- a/src/command.C
+++ b/src/command.C
@@ -1475,12 +1475,7 @@ rxvt_term::x_cb (XEvent &ev)
               {
 #ifdef HAVE_BG_PIXMAP
                 if (moved)
-                  {
-                    if (mapped)
-                      update_background ();
-                    else
-                      bg_invalidate ();
-                  }
+                  update_background ();
 #endif
               }

diff --git a/src/main.C b/src/main.C
index 267d9b68bf3e1e462e6a642921557062bf9b5cb9..
index ..332b76e4f51a4abfe2341bd3c1cc81e3fac86d15 100644
--- a/src/main.C
+++ b/src/main.C
@@ -1661,6 +1661,9 @@ rxvt_term::update_background ()

   bg_invalidate ();

+  if (!mapped)
+    return;
+
   ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since);

   if (to_wait <= 0.)

-----END OF PAGE-----