Fix focus dimming so when set to 1.0, it doesn't trash temporary palette changes

by applications. Not needed in gtk3
This commit is contained in:
Stephen Boddy 2015-11-07 01:43:24 +01:00
parent b87c5fb729
commit f8e3ea1f8c
2 changed files with 10 additions and 4 deletions

View File

@ -25,6 +25,10 @@ terminator trunk:
of the broken local one (Steve Boddy) of the broken local one (Steve Boddy)
* Workaround for intltool not handling Python files without an * Workaround for intltool not handling Python files without an
extension (Steve Boddy) extension (Steve Boddy)
* Fix intermittant rebalance failures (Steve Boddy, LP#1504560)
* Fix focus dimming so when set to 1.0, it doesn't trash temporary
palette changes by applications. Not needed in gtk3 (Steve Boddy,
LP#1512905)
terminator 0.98: terminator 0.98:
* Features * Features

View File

@ -1172,6 +1172,7 @@ class Terminal(gtk.VBox):
def on_vte_focus_in(self, _widget, _event): def on_vte_focus_in(self, _widget, _event):
"""Inform other parts of the application when focus is received""" """Inform other parts of the application when focus is received"""
if self.config['inactive_color_offset'] < 1.0:
self.vte.set_colors(self.fgcolor_active, self.bgcolor, self.vte.set_colors(self.fgcolor_active, self.bgcolor,
self.palette_active) self.palette_active)
self.set_cursor_color() self.set_cursor_color()
@ -1188,6 +1189,7 @@ class Terminal(gtk.VBox):
def on_vte_focus_out(self, _widget, _event): def on_vte_focus_out(self, _widget, _event):
"""Inform other parts of the application when focus is lost""" """Inform other parts of the application when focus is lost"""
if self.config['inactive_color_offset'] < 1.0:
self.vte.set_colors(self.fgcolor_inactive, self.bgcolor, self.vte.set_colors(self.fgcolor_inactive, self.bgcolor,
self.palette_inactive) self.palette_inactive)
self.set_cursor_color() self.set_cursor_color()