mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
tinywl: fix focus issue when only one toplevel exists
Previously, Alt+F1 would not focus the only one toplevel when that toplevel lacked focus.
This commit is contained in:
parent
436bcf9a47
commit
1f880d41ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue