summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-09 19:33:00 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-09 19:33:00 +0000
commit5fb19186ae431fdd2252044ebf67db96162f01b2 (patch)
tree643b18cf03a731129dee254ab3a7fa4f44ec1b58 /dwm.c
parent1ca96706def75ff1ccbae25da99f1dca1d0de785 (diff)
add resetmfact function
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 9 insertions, 0 deletions
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);
@@ -1585,6 +1586,14 @@ restack(Monitor *m)
}
void
+resetmfact(const Arg *arg)
+{
+ if (!selmon->lt[selmon->sellt]->arrange) return;
+ selmon->mfact = mfact;
+ arrange(selmon);
+}
+
+void
run(void)
{
XEvent ev;