rework handling of 'sticky' conf item to match others
This commit is contained in:
parent
cf66a347b1
commit
fae48b4a8d
@ -41,17 +41,17 @@ class Window(object):
|
|||||||
self.conf['mouse']['right'] = 'exit'
|
self.conf['mouse']['right'] = 'exit'
|
||||||
if not 'always_on_top' in self.conf:
|
if not 'always_on_top' in self.conf:
|
||||||
self.conf['always_on_top'] = True
|
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.font_sz = int(1024 * self.conf['font_size'])
|
||||||
self.fgcolor = ''.join(map(lambda x: '%02x' % int(0xFF * x),
|
self.fgcolor = ''.join(map(lambda x: '%02x' % int(0xFF * x),
|
||||||
self.conf['fgcolor']))
|
self.conf['fgcolor']))
|
||||||
sticky = True
|
|
||||||
if 'sticky' in self.conf:
|
|
||||||
sticky = self.conf['sticky']
|
|
||||||
|
|
||||||
self.window = gtk.Window()
|
self.window = gtk.Window()
|
||||||
self.window.set_title(title)
|
self.window.set_title(title)
|
||||||
self.window.set_decorated(False)
|
self.window.set_decorated(False)
|
||||||
if sticky:
|
if self.conf['sticky']:
|
||||||
self.window.stick()
|
self.window.stick()
|
||||||
if self.conf['always_on_top']:
|
if self.conf['always_on_top']:
|
||||||
self.window.set_keep_above(True)
|
self.window.set_keep_above(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user