From fae48b4a8db5a3db9ca0e9cbebb2b477e613047a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 19 Jul 2011 14:32:42 -0400 Subject: [PATCH] rework handling of 'sticky' conf item to match others --- Window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Window.py b/Window.py index ba64cfc..1bf51e8 100755 --- a/Window.py +++ b/Window.py @@ -41,17 +41,17 @@ class Window(object): self.conf['mouse']['right'] = 'exit' if not 'always_on_top' in self.conf: self.conf['always_on_top'] = True + if not 'sticky' in self.conf: + self.conf['sticky'] = True + self.font_sz = int(1024 * self.conf['font_size']) self.fgcolor = ''.join(map(lambda x: '%02x' % int(0xFF * x), self.conf['fgcolor'])) - sticky = True - if 'sticky' in self.conf: - sticky = self.conf['sticky'] self.window = gtk.Window() self.window.set_title(title) self.window.set_decorated(False) - if sticky: + if self.conf['sticky']: self.window.stick() if self.conf['always_on_top']: self.window.set_keep_above(True)