From: Marco Peereboom Date: Tue, 10 Feb 2009 05:02:17 +0000 (+0000) Subject: Put some lower bounds on resize; from Alexander Hall X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=a1d2fb7ac3944d438cec8635ce113177c25b085b;p=spectrwm.git Put some lower bounds on resize; from Alexander Hall --- 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;