[FancyZones] Popup behavior fix (#18270)

* virtual desktop check

* refactoring

* unified check
This commit is contained in:
Seraphima Zykova
2022-05-20 10:51:15 +02:00
committed by GitHub
parent be1ed8c0d4
commit 251ea6ded9
6 changed files with 54 additions and 19 deletions

View File

@@ -10,6 +10,7 @@
#include "FancyZonesData/AppZoneHistory.h"
#include "Settings.h"
#include "WorkArea.h"
#include <FancyZonesLib/FancyZonesWindowProcessing.h>
#include <FancyZonesLib/WindowUtils.h>
// Non-Localizable strings
@@ -60,6 +61,11 @@ WindowMoveHandler::WindowMoveHandler(const std::function<void()>& keyUpdateCallb
void WindowMoveHandler::MoveSizeStart(HWND window, HMONITOR monitor, POINT const& ptScreen, const std::unordered_map<HMONITOR, winrt::com_ptr<IWorkArea>>& workAreaMap) noexcept
{
if (!FancyZonesWindowProcessing::IsProcessable(window))
{
return;
}
if (!FancyZonesWindowUtils::IsCandidateForZoning(window) || WindowMoveHandlerUtils::IsCursorTypeIndicatingSizeEvent())
{
return;