]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: allow applying keyboard layout per window
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 7 Sep 2023 14:41:47 +0000 (16:41 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 4 Nov 2023 07:58:43 +0000 (07:58 +0000)
commit984aeb0b0bf8858217528342baab0b28889fa699
tree71fe833f72e4de0b092c723bb2f712f04e9ea968
parentf1c2664ad12d1cfb2948c81e6e7e7fd6b4f2795f
keyboard: allow applying keyboard layout per window

Fixes #1076

It can be enabled with a config like

~/.config/labwc/rc.xml:
<keyboard layoutScope="window">

~/.config/labwc/environment:
XKB_DEFAULT_LAYOUT=de,us
XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle,grp_led:scroll

With a configuration like this each window should now remember
the active keyboard layout when switching between windows.

By default, the keyboard layout keeps being a global state.
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/rcxml.h
include/input/keyboard.h
include/labwc.h
include/view.h
src/config/rcxml.c
src/input/keyboard.c
src/view.c