feat: add option view_current_to_back

This commit is contained in:
DreamMaoMao 2025-09-15 09:32:36 +08:00
parent 60726becd9
commit fa28568cec
3 changed files with 7 additions and 3 deletions

View file

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