backend/wayland: fix uninitialized wlr_event_keyboard_key::update_state

This commit is contained in:
emersion 2018-02-21 17:58:29 +01:00
parent 2e7d886254
commit 11e5f0bac8
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 6 additions and 4 deletions

View File

@ -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);
}