diff options
| author | Anselm R Garbe <anselm@garbe.us> | 2011-03-23 08:58:57 +0000 |
|---|---|---|
| committer | Anselm R Garbe <anselm@garbe.us> | 2011-03-23 08:58:57 +0000 |
| commit | dd46d5b588dc5d33940bde87817f3e8d608788d4 (patch) | |
| tree | e58928f792e04e38b2ae8d1f2fb6aee4e46226c1 | |
| parent | applied anonymous patch, I don't think the reversed array access has semantic... (diff) | |
| download | dwm-dd46d5b588dc5d33940bde87817f3e8d608788d4.tar.gz dwm-dd46d5b588dc5d33940bde87817f3e8d608788d4.zip | |
applied Hiltjo's multimon mouse-based resize fix
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1365,8 +1365,8 @@ resizemouse(const Arg *arg) { | |||
| 1365 | case MotionNotify: | 1365 | case MotionNotify: |
| 1366 | nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); | 1366 | nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); |
| 1367 | nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); | 1367 | nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); |
| 1368 | if(snap && nw >= selmon->wx && nw <= selmon->wx + selmon->ww | 1368 | if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww |
| 1369 | && nh >= selmon->wy && nh <= selmon->wy + selmon->wh) | 1369 | && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) |
| 1370 | { | 1370 | { |
| 1371 | if(!c->isfloating && selmon->lt[selmon->sellt]->arrange | 1371 | if(!c->isfloating && selmon->lt[selmon->sellt]->arrange |
| 1372 | && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) | 1372 | && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) |
