add an option to manage when keyboard layout is changed

This patch adds an option, but the actual functional for it to control
being added in next one.

To keep keyboard layout per window add in sway config:

    seat * keep_keyboard_layout per_window

To keep keyboard layout globally either do not add anything (it's the
default), or to explicitly enable it use the following:

    seat * keep_keyboard_layout global

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
Konstantin Kharlamov 2018-11-18 19:50:24 +03:00
parent 4925882920
commit 481accca2a
6 changed files with 42 additions and 0 deletions

View file

@ -201,6 +201,9 @@ correct seat.
disables hiding the cursor. The minimal timeout is 100 and any value less
than that (aside from 0), will be increased to 100.
*seat* <name> keep_keyboard_layout global|per_window
Controls whether to keep keyboard layout per window. Default is _global_.
*seat* <name> pointer_constraint enable|disable|escape
Enables or disables the ability for clients to capture the cursor (enabled
by default) for the seat. This is primarily useful for video games. The