mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[FancyZones] Popup behavior fix (#18270)
* virtual desktop check * refactoring * unified check
This commit is contained in:
@@ -201,7 +201,7 @@ std::optional<GUID> VirtualDesktop::GetDesktopId(HWND window) const
|
||||
if (m_vdManager && m_vdManager->IsWindowOnCurrentVirtualDesktop(window, &isWindowOnCurrentDesktop) == S_OK && isWindowOnCurrentDesktop)
|
||||
{
|
||||
// Filter windows such as Windows Start Menu, Task Switcher, etc.
|
||||
if (m_vdManager->GetWindowDesktopId(window, &id) == S_OK && id != GUID_NULL)
|
||||
if (m_vdManager->GetWindowDesktopId(window, &id) == S_OK)
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user