mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 04:48:04 +02:00
libinput-device: Remove unnecessary function call
When we handle keyboard key events, we already retrieve the key state at the top of this function, so there is no real need to call the same libinput function again as we can just reuse the 'key_state' variable that we have above. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
c25f72d8e9
commit
7e7f793174
1 changed files with 1 additions and 2 deletions
|
|
@ -76,8 +76,7 @@ handle_keyboard_key(struct libinput_device *libinput_device,
|
|||
notify_key(device->seat,
|
||||
libinput_event_keyboard_get_time(keyboard_event),
|
||||
libinput_event_keyboard_get_key(keyboard_event),
|
||||
libinput_event_keyboard_get_key_state(keyboard_event),
|
||||
STATE_UPDATE_AUTOMATIC);
|
||||
key_state, STATE_UPDATE_AUTOMATIC);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue