diff options
| author | bakkeby <[email protected]> | 2020-07-03 15:57:14 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-03 15:57:14 +0200 |
| commit | 8f06f9a2d54046c628b4e1f3faa5590c6616cb12 (patch) | |
| tree | ced4747bc6f99dc92801b4167e785500d586a7f9 | |
| parent | a7763038fdfd4307bb206475b033d5c2a130149b (diff) | |
| download | dwm-flexipatch-8f06f9a2d54046c628b4e1f3faa5590c6616cb12.tar.gz dwm-flexipatch-8f06f9a2d54046c628b4e1f3faa5590c6616cb12.zip | |
switchtag improvements, making the restoring of tags optional and configurable
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -675,7 +675,6 @@ applyrules(Client *c) if (newtagset && !(c->tags & c->mon->tagset[c->mon->seltags])) { if (r->switchtag == 3 || r->switchtag == 4) c->switchtag = c->mon->tagset[c->mon->seltags]; - c->mon->tagset[c->mon->seltags] = newtagset; if (r->switchtag == 1 || r->switchtag == 3) { #if PERTAG_PATCH pertagview(&((Arg) { .ui = newtagset })); @@ -683,8 +682,10 @@ applyrules(Client *c) #else view(&((Arg) { .ui = newtagset })); #endif // PERTAG_PATCH - } else + } else { + c->mon->tagset[c->mon->seltags] = newtagset; arrange(c->mon); + } } } #endif // SWITCHTAG_PATCH |
