repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 98ad9213a3e0f5b716a5aa4929274a53037f620d: path_to: revision_to:
commit 98ad9213a3e0f5b716a5aa4929274a53037f620d Author: Emanuele GiaquintaDate: Mon Nov 1 11:37:02 2010 +0000 Simplify. diff --git a/src/background.C b/src/background.C
--- 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
--- 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-----