opt: optimize auto_back_tag toggle logic

This commit is contained in:
DreamMaoMao 2025-09-09 17:42:43 +08:00
parent a875fbd060
commit df7c877614

View file

@ -3,7 +3,7 @@ void bind_to_view(const Arg *arg) {
unsigned int target = arg->ui;
if (selmon->pertag->curtag &&
target == (1 << (selmon->pertag->curtag - 1))) {
(target & TAGMASK) == (selmon->tagset[selmon->seltags])) {
if (selmon->pertag->prevtag)
target = 1 << (selmon->pertag->prevtag - 1);
else