diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-25 16:10:02 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-25 16:10:02 +0200 |
commit | 946be76ca726b28883db45136d9b9b39bc8042c1 (patch) | |
tree | c891bb6b518e69001e546af20354948dae52d714 /dwm.c | |
parent | btmstck update (diff) | |
download | dwm-946be76ca726b28883db45136d9b9b39bc8042c1.tar.gz dwm-946be76ca726b28883db45136d9b9b39bc8042c1.tar.bz2 dwm-946be76ca726b28883db45136d9b9b39bc8042c1.tar.xz dwm-946be76ca726b28883db45136d9b9b39bc8042c1.tar.zst dwm-946be76ca726b28883db45136d9b9b39bc8042c1.zip |
update
Diffstat (limited to '')
-rw-r--r-- | dwm.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2012,6 +2012,15 @@ toggleview(const Arg *arg) unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); int i; + // the first visible client should be the same after we add a new tag + // we also want to be sure not to mutate the focus + Client *const c = nexttiled(selmon->clients); + if (c) { + Client * const selected = selmon->sel; + pop(c); + focus(selected); + } + if (newtagset) { selmon->tagset[selmon->seltags] = newtagset; |