Fix the palette for inactive terminals after Prefs window

This commit is contained in:
Stephen Boddy 2015-11-29 02:51:26 +01:00
parent 47642be133
commit 918b53c6f0
2 changed files with 7 additions and 2 deletions

View File

@ -731,8 +731,12 @@ class Terminal(Gtk.VBox):
getattr(newcolor_inactive, bit) * factor)
self.palette_active.append(newcolor)
self.palette_inactive.append(newcolor_inactive)
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
self.palette_active)
if self.terminator.last_focused_term == self:
self.vte.set_colors(self.fgcolor_active, self.bgcolor,
self.palette_active)
else:
self.vte.set_colors(self.fgcolor_inactive, self.bgcolor,
self.palette_inactive)
self.set_cursor_color()
self.vte.set_cursor_shape(getattr(Vte.CursorShape,
self.config['cursor_shape'].upper()));

View File

@ -40,6 +40,7 @@ class Terminator(Borg):
config = None
keybindings = None
style_provider = None
last_focused_term = None
origcwd = None
dbus_path = None