summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
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;