From cb242b5abd4026b38291906eec6b2306b7c197bf Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 29 Jan 2009 22:31:27 +0000 Subject: [PATCH] Fix smaller than possible resize. --- scrotwm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scrotwm.c b/scrotwm.c index 43a0d4d..fbb41b3 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1689,6 +1689,10 @@ resize(struct ws_win *win, union arg *args) break; case MotionNotify: XSync(display, False); + if (ev.xmotion.x < 0) + ev.xmotion.x = 0; + if (ev.xmotion.y < 0) + ev.xmotion.y = 0; win->g.w = ev.xmotion.x; win->g.h = ev.xmotion.y; resize_window(win); -- 1.7.10.4