Merge branch 'tinywl-focus' into 'master'

tinywl: fix focus issue when only one toplevel exists

See merge request wlroots/wlroots!5263
This commit is contained in:
qaqland 2 2026-03-24 07:21:05 +00:00
commit 8ac86ef688

View file

@ -185,7 +185,7 @@ static bool handle_keybinding(struct tinywl_server *server, xkb_keysym_t sym) {
break;
case XKB_KEY_F1:
/* Cycle to the next toplevel */
if (wl_list_length(&server->toplevels) < 2) {
if (wl_list_empty(&server->toplevels)) {
break;
}
struct tinywl_toplevel *next_toplevel =