diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-10 00:33:40 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-10 00:35:15 -0400 |
commit | 035dd9c4de5c14aed63a63c12ebe711bad09264a (patch) | |
tree | 14e62b9a17d0e5e6b15843c699f6d75f567e58d3 | |
parent | eeb2e50a760eb0135f22a2a4f3a31c9d32aa8b39 (diff) |
compositor: End keyboard grab when compositor loses keyboard focus
-rw-r--r-- | src/compositor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c index 1bdca11..96296cc 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -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); } } |