Update win32_window.c

solve dead block problem when glfw-window is a cross-thread child window
This commit is contained in:
halx99 2016-12-08 15:44:53 +08:00 committed by GitHub
parent 81497c6db4
commit e2ac93ef8f

View File

@ -566,10 +566,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
else else
_glfwInputKey(window, key, scancode, action, mods); _glfwInputKey(window, key, scancode, action, mods);
if(wParam == VK_MENU) { if(wParam == VK_MENU || wParam == VK_F10) {
return 0; return 0;
} }
break; // #fix: disable system default ALT process, solve dead block problem when glfw-window is a cross-thread child window. break; // #fix: disable system default ALT/F10 process, solve dead block problem when glfw-window is a cross-thread child window.
} }
case WM_LBUTTONDOWN: case WM_LBUTTONDOWN: