mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[FancyZones] Process windows with "Show windows from this app on all desktops" option fix (#18675)
* changed current vd check * removed include
This commit is contained in:
@@ -190,8 +190,13 @@ bool VirtualDesktop::IsVirtualDesktopIdSavedInRegistry(GUID id) const
|
||||
|
||||
bool VirtualDesktop::IsWindowOnCurrentDesktop(HWND window) const
|
||||
{
|
||||
std::optional<GUID> id = GetDesktopId(window);
|
||||
return id.has_value();
|
||||
BOOL isWindowOnCurrentDesktop = false;
|
||||
if (m_vdManager)
|
||||
{
|
||||
m_vdManager->IsWindowOnCurrentVirtualDesktop(window, &isWindowOnCurrentDesktop);
|
||||
}
|
||||
|
||||
return isWindowOnCurrentDesktop;
|
||||
}
|
||||
|
||||
std::optional<GUID> VirtualDesktop::GetDesktopId(HWND window) const
|
||||
|
||||
Reference in New Issue
Block a user