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
@ -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…
x
Reference in New Issue
Block a user