mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
Bug 613118 - WM_SYSCOMMAND doesn't filter wParam correctly. r=robarnold, a=2.0
This commit is contained in:
parent
36b309be82
commit
2595b0f411
@ -5277,22 +5277,25 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
|
||||
#ifndef WINCE
|
||||
case WM_SYSCOMMAND:
|
||||
{
|
||||
WPARAM filteredWParam = (wParam &0xFFF0);
|
||||
// prevent Windows from trimming the working set. bug 76831
|
||||
if (!sTrimOnMinimize && wParam == SC_MINIMIZE) {
|
||||
if (!sTrimOnMinimize && filteredWParam == SC_MINIMIZE) {
|
||||
::ShowWindow(mWnd, SW_SHOWMINIMIZED);
|
||||
result = PR_TRUE;
|
||||
}
|
||||
|
||||
// Handle the system menu manually when we're in full screen mode
|
||||
// so we can set the appropriate options.
|
||||
if (wParam == SC_KEYMENU && lParam == VK_SPACE &&
|
||||
if (filteredWParam == SC_KEYMENU && lParam == VK_SPACE &&
|
||||
mSizeMode == nsSizeMode_Fullscreen) {
|
||||
DisplaySystemMenu(mWnd, mSizeMode, mIsRTL,
|
||||
MOZ_SYSCONTEXT_X_POS,
|
||||
MOZ_SYSCONTEXT_Y_POS);
|
||||
result = PR_TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user