mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 22:43:31 +08:00
[FancyZones] Do not snap child windows via the "Win+Arrow" shortcut (#15102)
This commit is contained in:
parent
f280170021
commit
7d0304fd06
@ -416,7 +416,7 @@ void FancyZones::WindowCreated(HWND window) noexcept
|
||||
return;
|
||||
}
|
||||
|
||||
const bool isCandidateForLastKnownZone = FancyZonesUtils::IsCandidateForLastKnownZone(window, m_settings->GetSettings()->excludedAppsArray);
|
||||
const bool isCandidateForLastKnownZone = FancyZonesUtils::IsCandidateForZoning(window, m_settings->GetSettings()->excludedAppsArray);
|
||||
if (!isCandidateForLastKnownZone)
|
||||
{
|
||||
return;
|
||||
|
@ -441,7 +441,7 @@ namespace FancyZonesUtils
|
||||
return true;
|
||||
}
|
||||
|
||||
bool IsCandidateForLastKnownZone(HWND window, const std::vector<std::wstring>& excludedApps) noexcept
|
||||
bool IsCandidateForZoning(HWND window, const std::vector<std::wstring>& excludedApps) noexcept
|
||||
{
|
||||
auto zonable = IsStandardWindow(window) && HasNoVisibleOwner(window);
|
||||
if (!zonable)
|
||||
@ -452,16 +452,6 @@ namespace FancyZonesUtils
|
||||
return IsZonableByProcessPath(get_process_path(window), excludedApps);
|
||||
}
|
||||
|
||||
bool IsCandidateForZoning(HWND window, const std::vector<std::wstring>& excludedApps) noexcept
|
||||
{
|
||||
if (!IsStandardWindow(window))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return IsZonableByProcessPath(get_process_path(window), excludedApps);
|
||||
}
|
||||
|
||||
bool IsWindowMaximized(HWND window) noexcept
|
||||
{
|
||||
WINDOWPLACEMENT placement{};
|
||||
|
@ -199,7 +199,6 @@ namespace FancyZonesUtils
|
||||
|
||||
bool HasNoVisibleOwner(HWND window) noexcept;
|
||||
bool IsStandardWindow(HWND window);
|
||||
bool IsCandidateForLastKnownZone(HWND window, const std::vector<std::wstring>& excludedApps) noexcept;
|
||||
bool IsCandidateForZoning(HWND window, const std::vector<std::wstring>& excludedApps) noexcept;
|
||||
|
||||
bool IsWindowMaximized(HWND window) noexcept;
|
||||
|
Loading…
Reference in New Issue
Block a user