dwm-noxz

[fork] suckless dwm - personal fork
git clone https://noxz.tech/git/dwm-noxz.git
dwm-noxz

commit: cf17fcc96fc0c5a1fba5e7fdd66ab861431703d4
parent: a6990a93c88728e37171f1fa1d98e61c761823d9
author: Chris Noxz <chris@noxz.tech>
date:   Wed, 5 Feb 2020 10:42:55 +0100
Implement viewontag
Mconfig.def.h1+
Mdwm.c2++
2 files changed, 3 insertions(+)
diff --git a/config.def.h b/config.def.h
@@ -6,6 +6,7 @@ static const unsigned int borderpx  = 2;        /* border pixel of windows */
 static const unsigned int snap      = 32;       /* snap pixel */
 static const int showbar            = 1;        /* 0 means no bar */
 static const int topbar             = 1;        /* 0 means bottom bar */
+static const int viewontag          = 1;
 static const int focusonwheel       = 0;
 static const char *fonts[]          = { "monospace:size=10" };
 static const char dmenufont[]       = "monospace:size=10";
diff --git a/dwm.c b/dwm.c
@@ -2040,6 +2040,8 @@ tag(const Arg *arg)
 		selmon->sel->tags = arg->ui & TAGMASK;
 		focus(NULL);
 		arrange(selmon);
+		if (viewontag)
+			view(arg);
 	}
 }