repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 6f78df65f673186f9f5d7476bff3ed8e810fdcbc: path_to: revision_to:
commit 6f78df65f673186f9f5d7476bff3ed8e810fdcbc Author: Emanuele GiaquintaDate: 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
--- 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
--- 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-----