diff --git a/config.def.h b/config.def.h index 1c0b587..2c65024 100644 --- a/config.def.h +++ b/config.def.h @@ -112,4 +112,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; - diff --git a/dwm.c b/dwm.c index 664c527..941bb82 100644 --- a/dwm.c +++ b/dwm.c @@ -192,6 +192,7 @@ static Monitor *recttomon(int x, int y, int w, int h); static void resize(Client *c, int x, int y, int w, int h, int interact); static void resizeclient(Client *c, int x, int y, int w, int h); static void resizemouse(const Arg *arg); +static void resetnmaster(const Arg *arg); static void restack(Monitor *m); static void run(void); static void scan(void); @@ -1345,6 +1346,13 @@ resizemouse(const Arg *arg) } } +void +resetnmaster(const Arg *arg) +{ + selmon->nmaster = 1; + arrange(selmon); +} + void restack(Monitor *m) {