-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwm-viewontag-20210312-61bb8b2.diff
39 lines (35 loc) · 1.25 KB
/
dwm-viewontag-20210312-61bb8b2.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 03d3c172ff736cb80e12f7bb7cab4e1f250af9dd Mon Sep 17 00:00:00 2001
From: Marco Fleres <[email protected]>
Date: Fri, 12 Mar 2021 22:25:53 -0300
Subject: [PATCH] Modification on viewontag patch: windows will not be followed
to the "all" tag
---
config.def.h | 1 +
dwm.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/config.def.h b/config.def.h
index 1c0b587..d7dfb6d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* 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 Bool viewontag = True; /* Switch view on tag switch */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
diff --git a/dwm.c b/dwm.c
index 664c527..8ca2f98 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1660,6 +1660,8 @@ tag(const Arg *arg)
selmon->sel->tags = arg->ui & TAGMASK;
focus(NULL);
arrange(selmon);
+ if(viewontag && ((arg->ui & TAGMASK) != TAGMASK))
+ view(arg);
}
}
--
2.30.1