diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-11-03 14:18:41 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-05 20:05:49 +0100 |
commit | f2d3b1000f451003c38933c05a742b76da48aeee (patch) | |
tree | fb9b5e180dada9e91c824d741e5f3a9d6e73ef43 /backend/headless | |
parent | 626c98d754253de10a7db0482e44459c7f75a85d (diff) |
Introduce wlr_keyboard_group
A wlr_keyboard_group allows for multiple keyboard devices to be
combined into one logical keyboard. Each keyboard device can only be
added to one keyboard group. This helps with the situation where one
physical keyboard is exposed as multiple keyboard devices. It is up to
the compositors on how they group keyboards together, if at all.
Since a wlr_keyboard_group is one logical keyboard, the keys are a set.
This means that if a key is pressed on multiple keyboard devices, the
key event will only be emitted once, but the internal state will count
the number of devices that the key is pressed on. Likewise, the key
release will not be emitted until the key is released from all devices.
If the compositor wants access to which keys are pressed and released
on each keyboard device, the events for those devices can be listened
to, as they currently are, in addition to the group keyboard's events.
Also, all keyboard devices in the group must share the same keymap. If
the keymap's differ, the keyboard device will not be able to be added
to the group. Once in the group, if the keymap or effective layout for
one keyboard device changes, it will be synced to all keyboard devices
in the group. The repeat info and keyboard modifiers are also synced
Diffstat (limited to 'backend/headless')
0 files changed, 0 insertions, 0 deletions