Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
0bc4e41
)
applied Hiltjo's multimon mouse-based resize fix
author
Anselm R Garbe <
[email protected]
>
Wed, 23 Mar 2011 08:58:57 +0000
(08:58 +0000)
committer
Anselm R Garbe <
[email protected]
>
Wed, 23 Mar 2011 08:58:57 +0000
(08:58 +0000)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
be11381
..
4a8ee32
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-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);
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 + selmon->ww
- &&
nh >= selmon->wy &&
nh <= selmon->wy + selmon->wh)
+ if(snap &&
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
&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
{
if(!c->isfloating && selmon->lt[selmon->sellt]->arrange
&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))