Windows: Correct testing of wParam when a WM_SYSCOMMAND is received
This commit is contained in:
parent
176a617393
commit
3899e6828f
|
@ -565,7 +565,7 @@ final class WindowsDisplay implements DisplayImplementation {
|
||||||
close_requested = true;
|
close_requested = true;
|
||||||
return true;
|
return true;
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
switch ((int)wParam) {
|
switch ((int)(wParam & 0xfff0)) {
|
||||||
case SC_KEYMENU:
|
case SC_KEYMENU:
|
||||||
case SC_MOUSEMENU:
|
case SC_MOUSEMENU:
|
||||||
case SC_SCREENSAVE:
|
case SC_SCREENSAVE:
|
||||||
|
|
Loading…
Reference in New Issue