aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-27 16:05:12 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-27 16:34:29 -0500
commitd738573e22649dfb01f70eca00cef221839c9efb (patch)
tree46f65d4164c6a43479835226c11d2a0bebab7e09 /client.h
parentb9295e8cee8d3e057f92a9fea1523c379c298f03 (diff)
new function to notify keyboard enter
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