From 26e6eba2b5f90c280e9e2b513bdb0d42b2ddfdfe Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 13 Feb 2009 10:43:11 +0000 Subject: [PATCH] Make transparency support much saner by making it much simpler. This means that enable_real_transparency being False doesn't prevent transparency from working, it just means it falls back to the fake transparency. Closes LP #328994 --- terminatorlib/terminatorterm.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 7aa41d2d..8491cf55 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -160,6 +160,7 @@ class TerminatorTerm (gtk.VBox): self._vte = vte.Terminal () if not hasattr(self._vte, "set_opacity") or not hasattr(self._vte, "is_composited"): self._composited_support = False + dbg ('H9TRANS: composited_support: %s' % self._composited_support) #self._vte.set_double_buffered(True) self._vte.set_size (80, 24) self._vte._expose_data = None @@ -690,15 +691,9 @@ text/plain dbg ('H9TRANS: Set opacity to: %s' % opacity) self._vte.set_opacity(opacity) - if self._composited_support and not self._vte.is_composited(): - dbg ('H9TRANS: Set background transparency to: %s' % (background_type == "transparent")) - background_transparent = (background_type == "transparent") - else: - dbg ('H9TRANS: Set background transparency to: False, hard') - background_transparent = False - - dbg ("Setting VTE transparency to: %s" % background_transparent) - self._vte.set_background_transparent (background_transparent) + if background_type == "transparent": + if not self.conf.enable_real_transparency: + self._vte.set_background_transparent (True) # Set our cursor blinkiness self._vte.set_cursor_blinks (self.conf.cursor_blink)