[FancyZones] Do not restore maximized windows (#5597)

* Do not restore maximized windows

* Fix show command comparison

* Move maximized check outside of RestoreWindowSize function
This commit is contained in:
vldmr11080
2020-08-06 15:12:49 +02:00
committed by GitHub
parent 9b4574ad06
commit 6c4129d02a
3 changed files with 13 additions and 1 deletions

View File

@@ -337,7 +337,7 @@ void WindowMoveHandlerPrivate::MoveSizeEnd(HWND window, POINT const& ptScreen, c
{
::RemoveProp(window, RESTORE_SIZE_STAMP);
}
else
else if (!IsWindowMaximized(window))
{
RestoreWindowSize(window);
}