mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 23:27:58 +02:00
shell: Don't assign keyboard focus for seats without keyboard
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73570
This commit is contained in:
parent
e4450f9123
commit
e61d2f4812
1 changed files with 3 additions and 0 deletions
|
|
@ -665,6 +665,9 @@ restore_focus_state(struct desktop_shell *shell, struct workspace *ws)
|
|||
struct weston_surface *surface;
|
||||
|
||||
wl_list_for_each_safe(state, next, &ws->focus_list, link) {
|
||||
if (state->seat->keyboard == NULL)
|
||||
continue;
|
||||
|
||||
surface = state->keyboard_focus;
|
||||
|
||||
weston_keyboard_set_focus(state->seat->keyboard, surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue