mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
add keys array param to seat keyboard enter
This commit is contained in:
parent
9cde828c94
commit
84a8f1b42d
3 changed files with 10 additions and 8 deletions
|
|
@ -129,7 +129,10 @@ static void example_set_focused_surface(struct sample_state *sample,
|
|||
}
|
||||
|
||||
if (surface) {
|
||||
wlr_seat_keyboard_enter(sample->wl_seat, surface->surface);
|
||||
// TODO: send array of currently pressed keys
|
||||
struct wl_array keys;
|
||||
wl_array_init(&keys);
|
||||
wlr_seat_keyboard_enter(sample->wl_seat, surface->surface, keys);
|
||||
} else {
|
||||
wlr_seat_keyboard_clear_focus(sample->wl_seat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue