summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorJulian T <julian@T410.mynet>2018-09-09 14:09:58 +0200
committerJulian T <julian@T410.mynet>2018-09-09 14:09:58 +0200
commitad449094048a818317fcba26bd2416dc9aed347a (patch)
treeff8ba8bbfee8fdf7e5681c807325da6df7c27efa /dwm.c
parent9b4825075d918647e515fabd9a190cd546df9ac3 (diff)
Added reset to programs in stack
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 1bbce1d..2c77adb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -202,6 +202,7 @@ static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
static void grabbuttons(Client *c, int focused);
static void grabkeys(void);
static void incnmaster(const Arg *arg);
+static void setnmaster(const Arg *arg);
static void keypress(XEvent *e);
static void killclient(const Arg *arg);
static void manage(Window w, XWindowAttributes *wa);
@@ -1096,6 +1097,13 @@ incnmaster(const Arg *arg)
arrange(selmon);
}
+//THis is custom
+void
+setnmaster(const Arg *arg){
+ selmon->nmaster = arg->i;
+ arrange(selmon);
+}
+
#ifdef XINERAMA
static int
isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info)