diff options
author | Anselm R Garbe | 2008-06-19 09:11:11 +0100 |
---|---|---|
committer | Anselm R Garbe | 2008-06-19 09:11:11 +0100 |
commit | 41989e55ad7cb1e2ed52f9e43f57ffb13e60c968 (patch) | |
tree | 18c9cb6a2214ba57243683cd5720950c359d3359 /dwm.c | |
parent | 87d399505c32cb7d58aa4c1656d795e15743fb38 (diff) | |
download | aur-41989e55ad7cb1e2ed52f9e43f57ffb13e60c968.tar.gz |
non-zero
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |