aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe2008-06-19 09:11:11 +0100
committerAnselm R Garbe2008-06-19 09:11:11 +0100
commit41989e55ad7cb1e2ed52f9e43f57ffb13e60c968 (patch)
tree18c9cb6a2214ba57243683cd5720950c359d3359 /dwm.c
parent87d399505c32cb7d58aa4c1656d795e15743fb38 (diff)
downloadaur-41989e55ad7cb1e2ed52f9e43f57ffb13e60c968.tar.gz
non-zero
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 8ae4c0e8fc7c..85292a998977 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