mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-12 08:21:33 -04:00
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:
commit
8ac86ef688
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;
|
break;
|
||||||
case XKB_KEY_F1:
|
case XKB_KEY_F1:
|
||||||
/* Cycle to the next toplevel */
|
/* Cycle to the next toplevel */
|
||||||
if (wl_list_length(&server->toplevels) < 2) {
|
if (wl_list_empty(&server->toplevels)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
struct tinywl_toplevel *next_toplevel =
|
struct tinywl_toplevel *next_toplevel =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue