mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 15:48:05 +02:00
compositor: Don't crash when receiving kb focus with no surface
This commit is contained in:
parent
109a00700e
commit
f59da399d8
1 changed files with 1 additions and 1 deletions
|
|
@ -1590,7 +1590,7 @@ notify_keyboard_focus(struct wl_input_device *device,
|
|||
update_modifier_state(wd, *k, 1);
|
||||
}
|
||||
|
||||
if (es->surface.resource.client)
|
||||
if (es && es->surface.resource.client)
|
||||
wl_input_device_set_keyboard_focus(&wd->input_device,
|
||||
&es->surface, time);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue