mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Merge remote-tracking branch 'upstream/master' into locPowerRename
This commit is contained in:
@@ -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