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-wayland.c b/src/compositor-wayland.c
index cde7658..5b6a8f4 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -640,7 +640,9 @@
struct wayland_input *input = data;
struct wayland_compositor *c = input->compositor;
- notify_keyboard_focus(&c->base.seat->seat, keys);
+ /* XXX: Need to wait for modifier event and send with state then. */
+ notify_keyboard_focus_in(&c->base.seat->seat, keys,
+ STATE_UPDATE_AUTOMATIC);
}
static void
@@ -652,7 +654,7 @@
struct wayland_input *input = data;
struct wayland_compositor *c = input->compositor;
- notify_keyboard_focus(&c->base.seat->seat, NULL);
+ notify_keyboard_focus_out(&c->base.seat->seat);
}
static void