aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/compositor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/compositor.c b/examples/compositor.c
index e09fdc14..8154c2e3 100644
--- a/examples/compositor.c
+++ b/examples/compositor.c
@@ -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);
}