Win32: Ignore SC_*MENU messages (triggered on ALT and F10 and made LWJGL apps appear to hang)
This commit is contained in:
parent
096fca927d
commit
cc8cff2d42
|
@ -134,6 +134,9 @@ LRESULT CALLBACK lwjglWindowProc(HWND hWnd,
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
{
|
{
|
||||||
switch (wParam) {
|
switch (wParam) {
|
||||||
|
case SC_KEYMENU:
|
||||||
|
case SC_MOUSEMENU:
|
||||||
|
// Ignore system menu retrieval
|
||||||
case SC_SCREENSAVE:
|
case SC_SCREENSAVE:
|
||||||
case SC_MONITORPOWER:
|
case SC_MONITORPOWER:
|
||||||
return 0L;
|
return 0L;
|
||||||
|
|
Loading…
Reference in New Issue