repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 98ad9213a3e0f5b716a5aa4929274a53037f620d:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 98ad9213a3e0f5b716a5aa4929274a53037f620d
Author: Emanuele Giaquinta 
Date:   Mon Nov 1 11:37:02 2010 +0000

    Simplify.

diff --git a/src/background.C b/src/background.C
index bf8bdf1795323155d12398a186b3413702b4014b..
index ..6c4f6c50f29ca714f31ae3155a0bfe5427c0b8ab 100644
--- a/src/background.C
+++ b/src/background.C
@@ -1517,17 +1517,10 @@ bgPixmap_t::render ()
   return true;
 }

-bool
+void
 bgPixmap_t::set_target (rxvt_term *new_target)
 {
-  if (new_target)
-    if (target != new_target)
-      {
-        target = new_target;
-        return true;
-      }
-
-  return false;
+  target = new_target;
 }

 void
diff --git a/src/background.h b/src/background.h
index c2bc181b96b9aabf240125a01f4ddd58ebef30d6..
index ..178058d217a67abfbcdd40ee570f5cfc7b703d3f 100644
--- a/src/background.h
+++ b/src/background.h
@@ -92,7 +92,7 @@ struct bgPixmap_t
 # endif /* BG_IMAGE_FROM_FILE */

   rxvt_term *target;
-  bool set_target (rxvt_term *new_target);
+  void set_target (rxvt_term *new_target);

 # ifdef ENABLE_TRANSPARENCY
   Pixmap      root_pixmap; /* current root pixmap set */

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