From 5fb19186ae431fdd2252044ebf67db96162f01b2 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Fri, 9 Jan 2026 19:33:00 +0000 Subject: add resetmfact function --- dwm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 8fb286c..466ee85 100644 --- a/dwm.c +++ b/dwm.c @@ -197,6 +197,7 @@ static void resizeclient(Client *c, int x, int y, int w, int h); static void resizemouse(const Arg *arg); static void restack(Monitor *m); static void clientresize(const Arg *arg); +static void resetmfact(const Arg *arg); static void run(void); static void scan(void); static int sendevent(Client *c, Atom proto); @@ -1584,6 +1585,14 @@ restack(Monitor *m) while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } +void +resetmfact(const Arg *arg) +{ + if (!selmon->lt[selmon->sellt]->arrange) return; + selmon->mfact = mfact; + arrange(selmon); +} + void run(void) { -- cgit v1.2.3