mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 03:28:00 +02:00
input: Cancel pointer grabs when compositor loses kb focus
This makes sure we pop down popups when the X backend loses keyboard focus or when the kms backend vt-switches away.
This commit is contained in:
parent
3d0fc76dd5
commit
ebd5fd4753
1 changed files with 2 additions and 0 deletions
|
|
@ -1297,6 +1297,8 @@ notify_keyboard_focus_out(struct weston_seat *seat)
|
|||
|
||||
weston_keyboard_set_focus(keyboard, NULL);
|
||||
weston_keyboard_cancel_grab(keyboard);
|
||||
if (seat->pointer)
|
||||
weston_pointer_cancel_grab(seat->pointer);
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue