Split notify_keyboard_focus into in/out variants
Since the two functions had nothing in common but the local variables.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/src/compositor.h b/src/compositor.h
index 8331faa..2066a56 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -458,6 +458,11 @@
void *private;
};
+enum weston_key_state_update {
+ STATE_UPDATE_AUTOMATIC,
+ STATE_UPDATE_NONE,
+};
+
void
weston_surface_update_transform(struct weston_surface *surface);
@@ -510,7 +515,10 @@
wl_fixed_t x, wl_fixed_t y);
void
-notify_keyboard_focus(struct wl_seat *seat, struct wl_array *keys);
+notify_keyboard_focus_in(struct wl_seat *seat, struct wl_array *keys,
+ enum weston_key_state_update update_state);
+void
+notify_keyboard_focus_out(struct wl_seat *seat);
void
notify_touch(struct wl_seat *seat, uint32_t time, int touch_id,