mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 06:20:26 +01:00
notify_key: Add update_state argument
If update_state is true, then notify_key will continue to call xkb_key_update_state to update the local state mask, as before this commit. Otherwise, it will rely on the compositor to manually update the state itself, for nested compositors. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
8e3bdd91bf
commit
f749baab42
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ evdev_process_key(struct evdev_input_device *device,
|
|||
notify_key(&device->master->base.seat,
|
||||
time, e->code,
|
||||
e->value ? WL_KEYBOARD_KEY_STATE_PRESSED :
|
||||
WL_KEYBOARD_KEY_STATE_RELEASED);
|
||||
WL_KEYBOARD_KEY_STATE_RELEASED,
|
||||
STATE_UPDATE_AUTOMATIC);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue