mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 01:58:03 +02:00
compositor: End keyboard grab when compositor loses keyboard focus
This commit is contained in:
parent
eeb2e50a76
commit
035dd9c4de
1 changed files with 4 additions and 0 deletions
|
|
@ -1717,6 +1717,10 @@ notify_keyboard_focus(struct wl_input_device *device,
|
|||
|
||||
wl_input_device_set_keyboard_focus(&wd->input_device,
|
||||
NULL, time);
|
||||
/* FIXME: We really need keyboard grab cancel here to
|
||||
* let the grab shut down properly. As it is we leak
|
||||
* the grab data. */
|
||||
wl_input_device_end_keyboard_grab(&wd->input_device, time);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue