mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
FancyZones: remove dialog boxes filtering (#1076)
* FancyZones: remove dialog boxes filtering * FancyZones: add the "no owner window" filter to the WinKey + arrow zone snapping
This commit is contained in:
committed by
GitHub
parent
c1232a7001
commit
62da7c7be4
@@ -680,6 +680,10 @@ void FancyZones::CycleActiveZoneSet(DWORD vkCode) noexcept
|
||||
{
|
||||
if (const HWND window = get_filtered_active_window())
|
||||
{
|
||||
if (GetWindow(window, GW_OWNER) != nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (const HMONITOR monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONULL))
|
||||
{
|
||||
std::shared_lock readLock(m_lock);
|
||||
@@ -696,6 +700,10 @@ void FancyZones::OnSnapHotkey(DWORD vkCode) noexcept
|
||||
{
|
||||
if (const HWND window = get_filtered_active_window())
|
||||
{
|
||||
if (GetWindow(window, GW_OWNER) != nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (const HMONITOR monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONULL))
|
||||
{
|
||||
std::shared_lock readLock(m_lock);
|
||||
|
||||
Reference in New Issue
Block a user