summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:11:11 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:11:11 +0100
commit79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4 (patch)
tree2c787ea4c9637b33d4476d77dbf45c29236d636e
parentAdded tag 5.0 for changeset 06eb9644e2da (diff)
downloaddwm-79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4.tar.gz
dwm-79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4.zip
non-zero
-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 @@
1# dwm version 1# dwm version
2VERSION = 5.0 2VERSION = 5.0.1
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
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) {
1496 1496
1497void 1497void
1498toggletag(const Arg *arg) { 1498toggletag(const Arg *arg) {
1499 if(sel && (sel->tags ^= (arg->ui & TAGMASK))) 1499 uint mask = sel->tags ^ (arg->ui & TAGMASK);
1500
1501 if(sel && mask) {
1502 sel->tags = mask;
1500 arrange(); 1503 arrange();
1504 }
1501} 1505}
1502 1506
1503void 1507void
1504toggleview(const Arg *arg) { 1508toggleview(const Arg *arg) {
1505 if((tagset[seltags] ^= (arg->ui & TAGMASK))) 1509 uint mask = tagset[seltags] ^ (arg->ui & TAGMASK);
1510
1511 if(mask) {
1512 tagset[seltags] = mask;
1506 arrange(); 1513 arrange();
1514 }
1507} 1515}
1508 1516
1509void 1517void