X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=29290d5d60a4922f8c1acf8f889d7fcc8147abc7;hb=a1d2fb7ac3944d438cec8635ce113177c25b085b;hp=0863b6240f178a5ca34e6c614e06d54b4d2cf3a7;hpb=32edf2c5ac6cbd7b967dd9448228b0fd36f30702;p=spectrwm.git 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;