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
1 changed files with 4 additions and 1 deletions

View File

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