We can't ask windows to be less than 1x1

This commit is contained in:
Chris Jones 2010-04-02 17:04:54 +01:00
parent 364a833324
commit 0e5e66cce0

View File

@ -212,7 +212,10 @@ class Terminator(Borg):
window.move(int(parts[0]), int(parts[1]))
if layout[windef].has_key('size'):
parts = layout[windef]['size']
window.resize(int(parts[0]), int(parts[1]))
winx = int(parts[0])
winy = int(parts[1])
if winx > 1 and winy > 1:
window.resize(winx, winy)
def layout_done(self):
"""Layout operations have finished, record that fact"""