Diffusion KWin eb69e87288d3

Manually take XKB_DEFAULT_{RULES,MODEL,LAYOUT,VARIANT,OPTIONS} into account

Authored by fvogt on Jan 14 2018, 11:46 AM.

Description

Manually take XKB_DEFAULT_{RULES,MODEL,LAYOUT,VARIANT,OPTIONS} into account

Summary:
As kwin_wayland can have the CAP_SYS_NICE capability, libxkbcommon does not
read environment variables (see secure_getenv).
So process them here, in the same way xkb_context_sanitize_rule_names would.

BUG: 388249

Test Plan: kwin_wayland has the capability set, keyboard layout is applied correctly.

Reviewers: Plasma, graesslin

Subscribers: kwin, plasma-devel, KWin

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D9873