Fix the palette for inactive terminals after Prefs window

This commit is contained in:
Stephen Boddy 2015-11-29 02:51:29 +01:00
parent e782204f9f
commit edee76f78e
2 changed files with 7 additions and 2 deletions

View File

@ -677,8 +677,12 @@ class Terminal(gtk.VBox):
getattr(newcolor_inactive, bit) * factor) getattr(newcolor_inactive, bit) * factor)
self.palette_active.append(newcolor) self.palette_active.append(newcolor)
self.palette_inactive.append(newcolor_inactive) self.palette_inactive.append(newcolor_inactive)
self.vte.set_colors(self.fgcolor_active, self.bgcolor, if self.terminator.last_focused_term == self:
self.palette_active) 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.set_cursor_color()
if hasattr(self.vte, 'set_cursor_shape'): if hasattr(self.vte, 'set_cursor_shape'):
self.vte.set_cursor_shape(getattr(vte, 'CURSOR_SHAPE_' + self.vte.set_cursor_shape(getattr(vte, 'CURSOR_SHAPE_' +

View File

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