mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 11:28:26 +02:00
exposay: add cancel impl to the kbd grab iface
Otherwise we'll crash when cancel is called. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
This commit is contained in:
parent
03251b6a7a
commit
8224309f14
1 changed files with 10 additions and 0 deletions
10
src/shell.c
10
src/shell.c
|
|
@ -5351,9 +5351,19 @@ exposay_modifier(struct weston_keyboard_grab *grab, uint32_t serial,
|
|||
{
|
||||
}
|
||||
|
||||
static void
|
||||
exposay_cancel(struct weston_keyboard_grab *grab)
|
||||
{
|
||||
struct desktop_shell *shell =
|
||||
container_of(grab, struct desktop_shell, exposay.grab_kbd);
|
||||
|
||||
exposay_set_state(shell, EXPOSAY_TARGET_CANCEL, shell->exposay.seat);
|
||||
}
|
||||
|
||||
static const struct weston_keyboard_grab_interface exposay_kbd_grab = {
|
||||
exposay_key,
|
||||
exposay_modifier,
|
||||
exposay_cancel,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue