X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=fbb41b3ca5ccaa934ae2b3bb8d0786fc042d3d74;hb=badd09cecf8d5c5748619136712553123974721c;hp=43a0d4d8ff554bf41ac1726b14b2d9c7d217fa8a;hpb=21a5aa39ebeb499b9e5916624176fe2d00c3bbb8;p=spectrwm.git 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);