opt: allow switch focus between fullscreen and floating window in focusstack

This commit is contained in:
DreamMaoMao 2025-10-27 12:46:04 +08:00
parent 04e3bd6861
commit 918a00d578
4 changed files with 13 additions and 2 deletions

View file

@ -343,11 +343,17 @@ Client *get_next_stack_client(Client *c, bool reverse) {
Client *next = NULL;
if (reverse) {
wl_list_for_each_reverse(next, &c->link, link) {
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
!next->isfullscreen)
continue;
if (VISIBLEON(next, c->mon) && next != c)
return next;
}
} else {
wl_list_for_each(next, &c->link, link) {
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
!next->isfullscreen)
continue;
if (VISIBLEON(next, c->mon) && next != c)
return next;
}