Commit 90b27ab4 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

[kcms/keyboard] Fix setting options on X11

It was missing the empty parameter for "-option ''" to trigger the reset,
resulting in an invalid commandline for setxkbmap, e.g.
setxkbmap -option -option compose:caps.

BUG: 443609
(cherry picked from commit 59406f88)
parent 701d94ff
......@@ -151,7 +151,10 @@ bool XkbHelper::initializeKeyboardLayouts(KeyboardConfig &config)
}
}
if (config.resetOldXkbOptions) {
if (config.resetOldXkbOptions) {
// Pass -option "" to clear previously set options
setxkbmapCommandArguments.append(QStringLiteral("-option"));
setxkbmapCommandArguments.append(QStringLiteral(""));
}
if (!config.xkbOptions.isEmpty()) {
setxkbmapCommandArguments.append(QStringLiteral("-option"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment