projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0fc76
)
input: Cancel pointer grabs when compositor loses kb focus
author
Kristian Høgsberg
<krh@bitplanet.net>
Sat, 23 Nov 2013 05:12:19 +0000
(21:12 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Sat, 23 Nov 2013 05:12:19 +0000
(21:12 -0800)
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
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
06a3c2e
..
ae0e832
100644
(file)
--- 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