tapplied Hiltjo's multimon mouse-based resize fix - dwm - [fork] customized bui… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit dd46d5b588dc5d33940bde87817f3e8d608788d4 | |
parent 0bc4e41ebdf4dfbdb4e865ab5297f5df4f0d9e16 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Wed, 23 Mar 2011 08:58:57 +0000 | |
applied Hiltjo's multimon mouse-based resize fix | |
Diffstat: | |
M dwm.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -1365,8 +1365,8 @@ 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 && nw >= selmon->wx && nw <= selmon->wx + selm… | |
- && nh >= selmon->wy && nh <= selmon->wy + selmon->wh) | |
+ if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx… | |
+ && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <=… | |
{ | |
if(!c->isfloating && selmon->lt[selmon->sellt]… | |
&& (abs(nw - c->w) > snap || abs(nh - c->h) > … |