summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <Joel.Bosveld@gmail.com>2008-06-03 07:24:32 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2008-06-03 07:24:32 +0800
commit6fa9984c87408b0dd70e26f895bfe56104602ace (patch)
treebd5a28c6a8a28d14fe4820fd320faee0bd7ceb9f
parent01837c06114865af3a1ffc852307ccb4331b6df3 (diff)
downloadjasper-6fa9984c87408b0dd70e26f895bfe56104602ace.tar.gz
jasper-6fa9984c87408b0dd70e26f895bfe56104602ace.tar.bz2
Quick fix for crash when opening windows which are too small
-rw-r--r--plugins/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/input.c b/plugins/input.c
index 05c7d82..369af20 100644
--- a/plugins/input.c
+++ b/plugins/input.c
@@ -135,6 +135,8 @@ moveWindows (JasperWindow *win, JasperButton *button)
JasperCore *c = (JasperCore *) (findRoot((JasperObject *) button))->base.children;
int x, y, w, h;
calculateWindowPosition (win, b, &x, &y, &w, &h);
+ if(w<1)w=1;
+ if(h<1)h=1;
XMoveResizeWindow (c->display, b->id, x, y, w, h);
XMapWindow (c->display, b->id);
}