non-zero
authorAnselm R Garbe <garbeam@gmail.com>
Thu, 19 Jun 2008 09:11:11 +0100
changeset 1288 2b839f9998c8
parent 1287 b8329bfe5046
child 1289 064cfe1e8f84
non-zero
config.mk
dwm.c
--- a/config.mk	Wed Jun 18 18:22:54 2008 +0100
+++ b/config.mk	Thu Jun 19 09:11:11 2008 +0100
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.0
+VERSION = 5.0.1
 
 # Customize below to fit your system
 
--- a/dwm.c	Wed Jun 18 18:22:54 2008 +0100
+++ b/dwm.c	Thu Jun 19 09:11:11 2008 +0100
@@ -1496,14 +1496,22 @@
 
 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