We need to update the temp grab pointer after 
weston_compositor_run_key_binding()
before calling the key handler because it may have installed a new grab.
---
 src/compositor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index 26c9a95..a9d59d9 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1843,6 +1843,7 @@ notify_key(struct wl_seat *seat, uint32_t time, uint32_t 
key,
                weston_compositor_run_key_binding(compositor, ws, time, key,
                                                  state);
 
+       grab = seat->keyboard->grab;
        grab->interface->key(grab, time, key, state);
        if (mods)
                grab->interface->modifiers(grab,
-- 
1.7.7.6

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to