remove enable_real_transparency setting and instead attempt to determine it based on the actual capabilities of the current display
This commit is contained in:
parent
dec2e53cbb
commit
fd8bc65654
|
@ -36,10 +36,6 @@ These are the options Terminator currently supports in the global_config section
|
||||||
Control how focus is given to terminals. 'click' means the focus only moves to a terminal after you click in it. 'sloppy' means the focus will follow the mouse pointer. 'system' means the focus will match that used by a GNOME window manager.
|
Control how focus is given to terminals. 'click' means the focus only moves to a terminal after you click in it. 'sloppy' means the focus will follow the mouse pointer. 'system' means the focus will match that used by a GNOME window manager.
|
||||||
Default value: \fBclick\fR
|
Default value: \fBclick\fR
|
||||||
.TP
|
.TP
|
||||||
.B enable_real_transparency\fR (boolean)
|
|
||||||
If true, Terminator will try to use real transparency if possible.
|
|
||||||
Default value: \fBFalse\fR
|
|
||||||
.TP
|
|
||||||
.B handle_size
|
.B handle_size
|
||||||
Controls the width of the separator between terminals. Anything outside the range 0-5 (inclusive) will be ignored and use your default theme value.
|
Controls the width of the separator between terminals. Anything outside the range 0-5 (inclusive) will be ignored and use your default theme value.
|
||||||
Default value: \fB-1\fR
|
Default value: \fB-1\fR
|
||||||
|
|
|
@ -77,7 +77,6 @@ except ImportError:
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
'global_config': {
|
'global_config': {
|
||||||
'focus' : 'click',
|
'focus' : 'click',
|
||||||
'enable_real_transparency' : True,
|
|
||||||
'handle_size' : -1,
|
'handle_size' : -1,
|
||||||
'geometry_hinting' : True,
|
'geometry_hinting' : True,
|
||||||
'window_state' : 'normal',
|
'window_state' : 'normal',
|
||||||
|
|
|
@ -613,10 +613,23 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
dbg('setting opacity: %d' % opacity)
|
dbg('setting opacity: %d' % opacity)
|
||||||
self.vte.set_opacity(opacity)
|
self.vte.set_opacity(opacity)
|
||||||
|
|
||||||
if self.config['background_type'] == 'transparent' and \
|
# This is quite hairy, but the basic explanation is that we should
|
||||||
self.config['enable_real_transparency'] == False:
|
# set_background_transparent(True) when we have no compositing and want
|
||||||
dbg('setting background_transparent=True')
|
# fake background transparency, otherwise it should be False.
|
||||||
self.vte.set_background_transparent(True)
|
if not self.composite_support:
|
||||||
|
# We have no compositing support, fake background only
|
||||||
|
background_transparent = True
|
||||||
|
else:
|
||||||
|
if self.vte.is_composited() == False:
|
||||||
|
# We have compositing and it's enabled. no fake background.
|
||||||
|
background_transparent = True
|
||||||
|
else:
|
||||||
|
# We have compositing, but it's not enabled. fake background
|
||||||
|
background_transparent = False
|
||||||
|
|
||||||
|
if self.config['background_type'] == 'transparent':
|
||||||
|
dbg('setting background_transparent=%s' % background_transparent)
|
||||||
|
self.vte.set_background_transparent(background_transparent)
|
||||||
else:
|
else:
|
||||||
dbg('setting background_transparent=False')
|
dbg('setting background_transparent=False')
|
||||||
self.vte.set_background_transparent(False)
|
self.vte.set_background_transparent(False)
|
||||||
|
|
Loading…
Reference in New Issue