Hi,
I think I fixed the following bug in the BUGS file:
> another corner case:
>
>a tiled client can be resized with mod+right click, but it only works
>on the main monitor
I attached the patch which I think fixes this. It works for me, but
please test if I maybe missed a case where it doesn't work :)
This is tested on a dual-monitor setup.
Offtopic: I noticed when changing the snap variable in config.h to 0
pixels movemouse() and resizemouse() won't work. Maybe it's a good
idea to remove the check for snap, since it's an "unsigned int" type
?.
Kind regards,
Hiltjo Posthuma
diff -r 072c62ed10f2 dwm.c
--- a/dwm.c Fri Jan 07 16:05:22 2011 +0000
+++ b/dwm.c Sat Mar 12 15:33:13 2011 +0000
@@ -1365,8 +1365,8 @@
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))