Commit ac227461 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: Detect an XLookupString that returns Latin-1 and avoid codepage mapping in that case.

parent 187d52bc
......@@ -2512,6 +2512,13 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
ret = 0;
}
/* Hack to detect an XLookupString hard-coded to Latin1 */
if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)
{
bufW[0] = (BYTE)lpChar[0];
goto found;
}
/* perform translation to unicode */
if(ret)
{
......
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