notify_key: Add update_state argument
If update_state is true, then notify_key will continue to call
xkb_key_update_state to update the local state mask, as before this
commit. Otherwise, it will rely on the compositor to manually update
the state itself, for nested compositors.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/src/compositor.h b/src/compositor.h
index f87843a..6e981f2 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -509,7 +509,8 @@
wl_fixed_t value);
void
notify_key(struct wl_seat *seat, uint32_t time, uint32_t key,
- enum wl_keyboard_key_state state);
+ enum wl_keyboard_key_state state,
+ enum weston_key_state_update update_state);
void
notify_pointer_focus(struct wl_seat *seat, struct weston_output *output,