JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Put some lower bounds on resize; from Alexander Hall
authorMarco Peereboom <marco@conformal.com>
Tue, 10 Feb 2009 05:02:17 +0000 (05:02 +0000)
committerMarco Peereboom <marco@conformal.com>
Tue, 10 Feb 2009 05:02:17 +0000 (05:02 +0000)
scrotwm.c

index 0863b62..29290d5 100644 (file)
--- 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;