diff --git a/dwm.c b/dwm.c index a0ec836..cfd5a85 100644 --- a/dwm.c +++ b/dwm.c @@ -1672,6 +1672,7 @@ void resizemouse(const Arg *arg) { int ocx, ocy, nw, nh; + unsigned int i; Client *c; Monitor *m; XEvent ev; @@ -1717,6 +1718,11 @@ resizemouse(const Arg *arg) resize(c, c->x, c->y, nw, nh, 1); else { selmon->mfact = (double) (ev.xmotion.x_root - selmon->mx) / (double) selmon->ww; + for(i=0; itagset[selmon->seltags] & 1<pertag->mfacts[i+1] = selmon->mfact; + if(selmon->pertag->curtag == 0) + selmon->pertag->mfacts[0] = selmon->mfact; arrange(selmon); } break;