opt: optimize auto_back_tag toggle logic
This commit is contained in:
@@ -3,7 +3,7 @@ void bind_to_view(const Arg *arg) {
|
|||||||
unsigned int target = arg->ui;
|
unsigned int target = arg->ui;
|
||||||
|
|
||||||
if (selmon->pertag->curtag &&
|
if (selmon->pertag->curtag &&
|
||||||
target == (1 << (selmon->pertag->curtag - 1))) {
|
(target & TAGMASK) == (selmon->tagset[selmon->seltags])) {
|
||||||
if (selmon->pertag->prevtag)
|
if (selmon->pertag->prevtag)
|
||||||
target = 1 << (selmon->pertag->prevtag - 1);
|
target = 1 << (selmon->pertag->prevtag - 1);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user