From d738573e22649dfb01f70eca00cef221839c9efb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
 <leohdz172@protonmail.com>
Date: Sat, 27 Aug 2022 16:05:12 -0500
Subject: new function to notify keyboard enter

---
 client.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'client.h')

diff --git a/client.h b/client.h
index 5988db3..a881131 100644
--- a/client.h
+++ b/client.h
@@ -198,6 +198,16 @@ client_is_unmanaged(Client *c)
 	return 0;
 }
 
+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)
 {
-- 
cgit v1.2.1