diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-23 15:00:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-23 15:00:52 -0400 |
commit | d89272dbbd87ebe1b8cbadf3a9c28552cc530eea (patch) | |
tree | 251e04861ec2ad3c50a00b9bc7cf7e321a74bf41 /examples/shared.c | |
parent | 02988e95e58a9d6fbf5b62225529b225e4bd540f (diff) | |
parent | 84a8f1b42dbd1882bef295cff66cd0c24afeb978 (diff) |
Merge pull request #156 from acrisci/feature/wlr-keyboard-events
[wip] wlr-seat-keyboard: keyboard events
Diffstat (limited to 'examples/shared.c')
-rw-r--r-- | examples/shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/shared.c b/examples/shared.c index 0346c96d..19cf83f0 100644 --- a/examples/shared.c +++ b/examples/shared.c @@ -48,7 +48,8 @@ static void keyboard_key_notify(struct wl_listener *listener, void *data) { key_state == WLR_KEY_PRESSED ? "pressed" : "released"); } if (kbstate->compositor->keyboard_key_cb) { - kbstate->compositor->keyboard_key_cb(kbstate, event->keycode, sym, key_state); + kbstate->compositor->keyboard_key_cb(kbstate, event->keycode, sym, + key_state, event->time_usec); } if (sym == XKB_KEY_Escape) { wl_display_terminate(kbstate->compositor->display); |