From cc8cff2d4223fd5ee8655b0afce7f039e3e26439 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 18 Apr 2005 07:31:07 +0000 Subject: [PATCH] Win32: Ignore SC_*MENU messages (triggered on ALT and F10 and made LWJGL apps appear to hang) --- src/native/win32/org_lwjgl_opengl_Display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/native/win32/org_lwjgl_opengl_Display.c b/src/native/win32/org_lwjgl_opengl_Display.c index 9b1a75d9..3911e86f 100644 --- a/src/native/win32/org_lwjgl_opengl_Display.c +++ b/src/native/win32/org_lwjgl_opengl_Display.c @@ -134,6 +134,9 @@ LRESULT CALLBACK lwjglWindowProc(HWND hWnd, case WM_SYSCOMMAND: { switch (wParam) { + case SC_KEYMENU: + case SC_MOUSEMENU: + // Ignore system menu retrieval case SC_SCREENSAVE: case SC_MONITORPOWER: return 0L;