diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-24 10:14:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-24 10:14:22 -0500 |
commit | 94d53d53f9a13e76bf35e072de2947be3c2f7125 (patch) | |
tree | 372d6f5d3b58c4dcb3414868dd1b03076965aa14 | |
parent | 69409ea3cb3bfba52df9ff35a9b58f6f1b3dc25e (diff) | |
parent | 11e5f0bac844774c8f420adc4d9203c75a0343e7 (diff) |
Merge pull request #657 from emersion/wl-backend-uninitialized-field
backend/wayland: fix uninitialized wlr_event_keyboard_key::update_state
-rw-r--r-- | backend/wayland/wl_seat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index b1f7cff6..841e693d 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -163,10 +163,12 @@ static void keyboard_handle_key(void *data, struct wl_keyboard *wl_keyboard, struct wlr_input_device *dev = data; assert(dev && dev->keyboard); - struct wlr_event_keyboard_key wlr_event; - wlr_event.keycode = key; - wlr_event.state = state; - wlr_event.time_msec = time; + struct wlr_event_keyboard_key wlr_event = { + .keycode = key, + .state = state, + .time_msec = time, + .update_state = false, + }; wlr_keyboard_notify_key(dev->keyboard, &wlr_event); } |