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