]> git.armaanb.net Git - dwm.git/commitdiff
non-zero
authorAnselm R Garbe <garbeam@gmail.com>
Thu, 19 Jun 2008 08:11:11 +0000 (09:11 +0100)
committerAnselm R Garbe <garbeam@gmail.com>
Thu, 19 Jun 2008 08:11:11 +0000 (09:11 +0100)
config.mk
dwm.c

index 6377fc008cf5e20ceda18a397f6909849b4aef8d..bd98b47cf74bff5b611ace8abc6b1b82a2133c4c 100644 (file)
--- 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 8ae4c0e8fc7c0573a661140ced2463d751b01aae..85292a9989775bc9d472a87801f989c037c438c3 100644 (file)
--- 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