new function to notify keyboard enter

This commit is contained in:
Leonardo Hernández Hernández 2022-08-27 16:05:12 -05:00
parent b9295e8cee
commit d738573e22
No known key found for this signature in database
GPG key ID: E538897EE11B9624
2 changed files with 12 additions and 13 deletions

View file

@ -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)
{