mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
Minor tweaks to (broken) keyboard support
This commit is contained in:
parent
f4387b437f
commit
e6a6634bc5
4 changed files with 35 additions and 96 deletions
|
|
@ -122,10 +122,7 @@ static void example_set_focused_surface(struct sample_state *sample,
|
|||
}
|
||||
|
||||
if (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);
|
||||
wlr_seat_keyboard_enter(sample->wl_seat, surface->surface);
|
||||
} else {
|
||||
wlr_seat_keyboard_clear_focus(sample->wl_seat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue