fix build error at 74d21af (#11691)

#11404 and #11653 both added WM_SYSCOMMAND which prevents build. This fixes it.
This commit is contained in:
Sergey 2021-11-05 22:26:03 +03:00 committed by GitHub
parent 7aae2e9100
commit 55dbda02a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 9 deletions

View File

@ -606,15 +606,6 @@ long IslandWindow::_calculateTotalSize(const bool isWidth, const long clientSize
}
break;
}
case WM_SYSCOMMAND:
{
if (wparam == SC_RESTORE && _fullscreen)
{
_ShouldExitFullscreenHandlers();
return 0;
}
break;
}
case WM_MENUCOMMAND:
{
_NotifyNotificationIconMenuItemSelectedHandlers((HMENU)lparam, (UINT)wparam);
@ -622,6 +613,11 @@ long IslandWindow::_calculateTotalSize(const bool isWidth, const long clientSize
}
case WM_SYSCOMMAND:
{
if (wparam == SC_RESTORE && _fullscreen)
{
_ShouldExitFullscreenHandlers();
return 0;
}
auto search = _systemMenuItems.find(LOWORD(wparam));
if (search != _systemMenuItems.end())
{