mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-20 06:48:11 +02:00
x11-backend: fix key-press typo
Probably copy-pasta. Noticed by gcc 15
../../git/weston/libweston/backend-x11/x11.c: In function ‘x11_backend_handle_event’:
../../git/weston/libweston/backend-x11/x11.c:1687:58: error: ‘key_release’ may be used uninitialized [-Werror=maybe-uninitialized]
1687 | key_release->detail - 8,
Fixes: 99527e6b92
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
c6ae939221
commit
0123bee273
1 changed files with 1 additions and 1 deletions
|
|
@ -1684,7 +1684,7 @@ x11_backend_handle_event(int fd, uint32_t mask, void *data)
|
|||
struct weston_key_event key_event;
|
||||
|
||||
weston_key_event_init(&key_event, &time, &b->core_seat,
|
||||
key_release->detail - 8,
|
||||
key_press->detail - 8,
|
||||
WL_KEYBOARD_KEY_STATE_PRESSED,
|
||||
b->has_xkb ? STATE_UPDATE_NONE : STATE_UPDATE_AUTOMATIC);
|
||||
notify_key(&key_event);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue