seat_cmd_keyboard_grouping: change keymap to smart

This removes `seat <seat> keyboard_grouping keymap` and replaces it with
`seat <seat> keyboard_grouping smart`. The smart keyboard grouping will
group based on both the keymap and repeat info. The reasoning for this
is that deciding what the repeat info should be for a group is either
arbitrary or non-deterministic when multiple keyboards in the group have
repeat info configured (unless somehow exposed to the user in a
reproducible uniquely identifiable fashion).
This commit is contained in:
Brian Ashworth 2019-12-15 01:33:33 -05:00 committed by Drew DeVault
parent 2b51c5b294
commit 452a615bb8
5 changed files with 45 additions and 28 deletions

View file

@ -230,15 +230,15 @@ correct seat.
"keyboard", "pointer", "touchpad", "touch", "tablet pad", "tablet tool",
and "switch". The default behavior is to wake from idle on any event.
*seat* <name> keyboard_grouping none|keymap
*seat* <name> keyboard_grouping none|smart
Set how the keyboards in the seat are grouped together. Currently, there
are two options. _none_ will disable all keyboard grouping. This will make
it so each keyboard device has its own isolated state. _keymap_ will
group the keyboards in the seat by their keymap. This is useful for when
the keyboard appears as multiple separate input devices. In this mode,
the effective layout and repeat info are also synced between the keyboards
in the group. The default is _keymap_. To restore the behavior of older
versions of sway, use _none_.
it so each keyboard device has its own isolated state. _smart_ will
group the keyboards in the seat by their keymap and repeat info. This is
useful for when the keyboard appears as multiple separate input devices.
In this mode, the effective layout is synced between the keyboards in the
group. The default is _smart_. To restore the behavior of older versions
of sway, use _none_.
*seat* <name> pointer_constraint enable|disable|escape
Enables or disables the ability for clients to capture the cursor (enabled