opt: allow foucstack next when fullscreen client has children

This commit is contained in:
DreamMaoMao 2025-10-05 21:16:19 +08:00
parent 98d0b96280
commit fa444a52d1

View file

@ -192,7 +192,7 @@ focusstack(const Arg *arg) {
Client *sel = focustop(selmon);
Client *tc = NULL;
if (!sel || sel->isfullscreen)
if (!sel || (sel->isfullscreen && !client_has_children(sel)))
return;
if (arg->i == NEXT) {
tc = get_next_stack_client(sel, false);