From a1d2fb7ac3944d438cec8635ce113177c25b085b Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 10 Feb 2009 05:02:17 +0000 Subject: [PATCH 1/1] Put some lower bounds on resize; from Alexander Hall --- scrotwm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrotwm.c b/scrotwm.c index 0863b62..29290d5 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1918,10 +1918,10 @@ resize(struct ws_win *win, union arg *args) handler[ev.type](&ev); break; case MotionNotify: - if (ev.xmotion.x < 0) - ev.xmotion.x = 0; - if (ev.xmotion.y < 0) - ev.xmotion.y = 0; + if (ev.xmotion.x <= 1) + ev.xmotion.x = 1; + if (ev.xmotion.y <= 1) + ev.xmotion.y = 1; win->g.w = ev.xmotion.x; win->g.h = ev.xmotion.y; -- 1.7.10.4