From 0e5e66cce0de5244ce611347a1ac50ba66c43974 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 2 Apr 2010 17:04:54 +0100 Subject: [PATCH] We can't ask windows to be less than 1x1 --- terminatorlib/terminator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 34ecda54..5a4bfc9a 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -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"""