diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-19 09:11:11 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-19 09:11:11 +0100 |
| commit | 79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4 (patch) | |
| tree | 2c787ea4c9637b33d4476d77dbf45c29236d636e /dwm.c | |
| parent | Added tag 5.0 for changeset 06eb9644e2da (diff) | |
| download | dwm-79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4.tar.gz dwm-79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4.zip | |
non-zero
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 12 |
1 files changed, 10 insertions, 2 deletions
| @@ -1496,14 +1496,22 @@ togglemax(const Arg *arg) { | |||
| 1496 | 1496 | ||
| 1497 | void | 1497 | void |
| 1498 | toggletag(const Arg *arg) { | 1498 | toggletag(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 | ||
| 1503 | void | 1507 | void |
| 1504 | toggleview(const Arg *arg) { | 1508 | toggleview(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 | ||
| 1509 | void | 1517 | void |
