From bf72c3e4f200ad8c0af06848277c1d9b5e6d924e Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 30 Jan 2013 09:59:52 +0000 Subject: [PATCH] Bring back support for forcing fake transparency. Closes LP#702917 --- doc/terminator_config.5 | 4 ++++ terminatorlib/config.py | 1 + terminatorlib/terminal.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index d29b4892..dea4273a 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -86,6 +86,10 @@ Default value: \fBFalse\fR Path to a program which accepts a URI as an argument and does something relevant with it. This option is ignored unless 'use_custom_url_handler' is set to True. Default value: unset .TP +.B disable_real_transparency \fR(string) +If this is set to True, Terminator will never try to use 'real' transparency if your windowing environment supports it. Instead it will use 'fake' transparency where a background image is shown, but other windows are not. +Default value: False +.TP .B title_transmit_fg_color Sets the colour of the text shown in the titlebar of the active terminal. Default value: \fB'#FFFFFF'\fR diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 0ff372c4..0d4f1cf5 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -93,6 +93,7 @@ DEFAULTS = { 'try_posix_regexp' : platform.system() != 'Linux', 'use_custom_url_handler': False, 'custom_url_handler' : '', + 'disable_real_transparency' : False, 'title_hide_sizetext' : False, 'title_transmit_fg_color' : '#ffffff', 'title_transmit_bg_color' : '#c80003', diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 3a0edf78..8ae390db 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -680,7 +680,7 @@ class Terminal(gtk.VBox): # This is quite hairy, but the basic explanation is that we should # set_background_transparent(True) when we have no compositing and want # fake background transparency, otherwise it should be False. - if not self.composite_support: + if not self.composite_support or self.config['disable_real_transparency']: # We have no compositing support, fake background only background_transparent = True else: