X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=1297b2b0d707455a12055bdaceac44ebfb6fcf35;hp=7b5fa4e318e9eca013b138725cc4ea7f5905dd44;hb=96f9855248545d6e6da1aeece04e44a1f7246ccb;hpb=3c48858ffada0825b62e52ac14b1feba4b7654a4 diff --git a/dwm.c b/dwm.c index 7b5fa4e..1297b2b 100644 --- a/dwm.c +++ b/dwm.c @@ -1365,7 +1365,7 @@ resizemouse(const Arg *arg) { case MotionNotify: nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); - if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww + if(c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) { if(!c->isfloating && selmon->lt[selmon->sellt]->arrange