From ebd5fd47537f141476f4da118a2751ef9934401d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 22 Nov 2013 21:12:19 -0800 Subject: [PATCH] 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. --- src/input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input.c b/src/input.c index 06a3c2e6..ae0e832b 100644 --- a/src/input.c +++ b/src/input.c @@ -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