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:
parent
b87c5fb729
commit
f8e3ea1f8c
|
@ -25,6 +25,10 @@ terminator trunk:
|
|||
of the broken local one (Steve Boddy)
|
||||
* Workaround for intltool not handling Python files without an
|
||||
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:
|
||||
* Features
|
||||
|
|
|
@ -1172,8 +1172,9 @@ class Terminal(gtk.VBox):
|
|||
|
||||
def on_vte_focus_in(self, _widget, _event):
|
||||
"""Inform other parts of the application when focus is received"""
|
||||
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
|
||||
self.palette_active)
|
||||
if self.config['inactive_color_offset'] < 1.0:
|
||||
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
|
||||
self.palette_active)
|
||||
self.set_cursor_color()
|
||||
if not self.terminator.doing_layout:
|
||||
self.terminator.last_focused_term = self
|
||||
|
@ -1188,8 +1189,9 @@ class Terminal(gtk.VBox):
|
|||
|
||||
def on_vte_focus_out(self, _widget, _event):
|
||||
"""Inform other parts of the application when focus is lost"""
|
||||
self.vte.set_colors(self.fgcolor_inactive, self.bgcolor,
|
||||
self.palette_inactive)
|
||||
if self.config['inactive_color_offset'] < 1.0:
|
||||
self.vte.set_colors(self.fgcolor_inactive, self.bgcolor,
|
||||
self.palette_inactive)
|
||||
self.set_cursor_color()
|
||||
self.emit('focus-out')
|
||||
|
||||
|
|
Loading…
Reference in New Issue