fix: tag preview shows next tag

This commit is contained in:
speedie 2023-01-03 02:18:53 +01:00
parent a51f111f42
commit dd64d36469

View file

@ -1168,10 +1168,6 @@ arrange(Monitor *m)
restack(m);
} else for (m = mons; m; m = m->next)
arrangemon(m);
#if USETAGPREVIEW
takepreview();
#endif
}
void
@ -6108,6 +6104,9 @@ view(const Arg *arg)
if(arg->ui && (arg->ui & TAGMASK) == selmon->tagset[selmon->seltags])
return;
#if USETAGPREVIEW
takepreview();
#endif
for (m = mons; m; m = m->next)
m->seltags ^= 1;
if (arg->ui & TAGMASK) {
@ -6144,9 +6143,6 @@ view(const Arg *arg)
togglebar(NULL);
}
#if USETAGPREVIEW
takepreview();
#endif
focus(NULL);
arrange(NULL);
updatecurrentdesktop();