non-zero
79ecbeca
2 file(s) · +11 −3
| 1 | 1 | # dwm version |
|
| 2 | - | VERSION = 5.0 |
|
| 2 | + | VERSION = 5.0.1 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 1496 | 1496 | ||
| 1497 | 1497 | void |
|
| 1498 | 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 | 1503 | arrange(); |
|
| 1504 | + | } |
|
| 1501 | 1505 | } |
|
| 1502 | 1506 | ||
| 1503 | 1507 | void |
|
| 1504 | 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 | 1513 | arrange(); |
|
| 1514 | + | } |
|
| 1507 | 1515 | } |
|
| 1508 | 1516 | ||
| 1509 | 1517 | void |