summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'client.h')
-rw-r--r--client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.h b/client.h
index 5988db3..a881131 100644
--- a/client.h
+++ b/client.h
@@ -199,6 +199,16 @@ client_is_unmanaged(Client *c)
}
static inline void
+client_notify_enter(struct wlr_surface *s, struct wlr_keyboard *kb)
+{
+ if (kb)
+ wlr_seat_keyboard_notify_enter(seat, s, kb->keycodes,
+ kb->num_keycodes, &kb->modifiers);
+ else
+ wlr_seat_keyboard_notify_enter(seat, s, NULL, 0, NULL);
+}
+
+static inline void
client_restack_surface(Client *c)
{
#ifdef XWAYLAND