mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
check desktop id (#12930)
This commit is contained in:
@@ -356,7 +356,8 @@ void FancyZones::WindowCreated(HWND window) noexcept
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_virtualDesktop.IsWindowOnCurrentDesktop(window))
|
auto desktopId = m_virtualDesktop.GetDesktopId(window);
|
||||||
|
if (desktopId.has_value() && *desktopId != m_currentDesktopId)
|
||||||
{
|
{
|
||||||
// Switch between virtual desktops results with posting same windows messages that also indicate
|
// Switch between virtual desktops results with posting same windows messages that also indicate
|
||||||
// creation of new window. We need to check if window being processed is on currently active desktop.
|
// creation of new window. We need to check if window being processed is on currently active desktop.
|
||||||
|
|||||||
Reference in New Issue
Block a user