From c88efa050fa6fcbf6b97305271ea9012d9ab10ea Mon Sep 17 00:00:00 2001 From: Jakub Date: Wed, 15 May 2024 16:08:05 -0400 Subject: [PATCH] make drag mfact compatible with pertag --- dwm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;