aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winwndproc.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-26 09:10:01 +0100
committermarha <marha@users.sourceforge.net>2012-01-26 09:10:01 +0100
commit975bb0c5912cacce6484337cb6c0700590575179 (patch)
tree98c06e2dce5bf0d46c48818b0543bdd38623612e /xorg-server/hw/xwin/winwndproc.c
parentaa2ee0fde2dcd33795ce4d3904d6da21d4bb09e8 (diff)
downloadvcxsrv-975bb0c5912cacce6484337cb6c0700590575179.tar.gz
vcxsrv-975bb0c5912cacce6484337cb6c0700590575179.tar.bz2
vcxsrv-975bb0c5912cacce6484337cb6c0700590575179.zip
Solved problems with AltGr key
Diffstat (limited to 'xorg-server/hw/xwin/winwndproc.c')
-rw-r--r--xorg-server/hw/xwin/winwndproc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xorg-server/hw/xwin/winwndproc.c b/xorg-server/hw/xwin/winwndproc.c
index 8dbd90971..d4e3c4529 100644
--- a/xorg-server/hw/xwin/winwndproc.c
+++ b/xorg-server/hw/xwin/winwndproc.c
@@ -1063,6 +1063,10 @@ winWindowProc (HWND hwnd, UINT message,
if ((wParam == VK_LWIN || wParam == VK_RWIN) && !g_fKeyboardHookLL)
break;
+ /* Discard fake Ctrl_L events that precede AltGR on non-US keyboards */
+ if (winIsFakeCtrl_L (message, wParam, lParam))
+ return 0;
+
/*
* Discard presses generated from Windows auto-repeat
*/
@@ -1083,10 +1087,6 @@ winWindowProc (HWND hwnd, UINT message,
}
}
- /* Discard fake Ctrl_L presses that precede AltGR on non-US keyboards */
- if (winIsFakeCtrl_L (message, wParam, lParam))
- return 0;
-
/* Translate Windows key code to X scan code */
winTranslateKey (wParam, lParam, &iScanCode);