Commit b8ae794e authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: fix keyboard=query logic

an empty nxagentKeyboard variable is no reason to fall back to no-XKB mode
parent 05e03b96
...@@ -849,7 +849,7 @@ XkbError: ...@@ -849,7 +849,7 @@ XkbError:
XkbInitKeyboardDeviceStruct((void *)pDev, &names, &keySyms, modmap, XkbInitKeyboardDeviceStruct((void *)pDev, &names, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl); nxagentBell, nxagentChangeKeyboardControl);
if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0) if (nxagentKeyboard && strcmp(nxagentKeyboard, "query") == 0)
{ {
goto XkbError; goto XkbError;
} }
......
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