mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
Merge pull request #657 from emersion/wl-backend-uninitialized-field
backend/wayland: fix uninitialized wlr_event_keyboard_key::update_state
This commit is contained in:
commit
94d53d53f9
1 changed files with 6 additions and 4 deletions
|
@ -163,10 +163,12 @@ static void keyboard_handle_key(void *data, struct wl_keyboard *wl_keyboard,
|
||||||
struct wlr_input_device *dev = data;
|
struct wlr_input_device *dev = data;
|
||||||
assert(dev && dev->keyboard);
|
assert(dev && dev->keyboard);
|
||||||
|
|
||||||
struct wlr_event_keyboard_key wlr_event;
|
struct wlr_event_keyboard_key wlr_event = {
|
||||||
wlr_event.keycode = key;
|
.keycode = key,
|
||||||
wlr_event.state = state;
|
.state = state,
|
||||||
wlr_event.time_msec = time;
|
.time_msec = time,
|
||||||
|
.update_state = false,
|
||||||
|
};
|
||||||
wlr_keyboard_notify_key(dev->keyboard, &wlr_event);
|
wlr_keyboard_notify_key(dev->keyboard, &wlr_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue