aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-09-23 14:40:56 -0400
committerTony Crisci <tony@dubstepdish.com>2017-09-23 14:41:57 -0400
commit84a8f1b42dbd1882bef295cff66cd0c24afeb978 (patch)
tree28f52b04e927751ca84f0ac5741da8fe418a2413 /examples/compositor.c
parent9cde828c9491b67fb8cacdc227168dcadaa36e00 (diff)
add keys array param to seat keyboard enter
Diffstat (limited to 'examples/compositor.c')
-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);
}