about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--dwm.c12
2 files changed, 11 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 6377fc0..bd98b47 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.0
+VERSION = 5.0.1
 
 # Customize below to fit your system
 
diff --git a/dwm.c b/dwm.c
index 8ae4c0e..85292a9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1496,14 +1496,22 @@ togglemax(const Arg *arg) {
 
 void
 toggletag(const Arg *arg) {
-	if(sel && (sel->tags ^= (arg->ui & TAGMASK)))
+	uint mask = sel->tags ^ (arg->ui & TAGMASK);
+
+	if(sel && mask) {
+		sel->tags = mask;
 		arrange();
+	}
 }
 
 void
 toggleview(const Arg *arg) {
-	if((tagset[seltags] ^= (arg->ui & TAGMASK)))
+	uint mask = tagset[seltags] ^ (arg->ui & TAGMASK);
+
+	if(mask) {
+		tagset[seltags] = mask;
 		arrange();
+	}
 }
 
 void
@akkartik.com> 2015-03-23 23:59:59 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-03-24 20:59:00 -0700 968' href='/akkartik/mu/commit/cpp/.traces/convert_names_transforms_record_elements?h=hlt&id=576990113273caed9a045380f1457adc1df6a5ee'>57699011 ^
a3d9828c ^






57699011 ^
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