mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
Remove workarounds related to 0000 dekstop GUID. (#3931)
This commit is contained in:
parent
0d59de5767
commit
1c7b07d614
@ -281,10 +281,6 @@ namespace JSONHelpers
|
||||
bool FancyZonesData::RemoveDevicesByVirtualDesktopId(const std::wstring& virtualDesktopId)
|
||||
{
|
||||
std::scoped_lock lock{ dataLock };
|
||||
if (virtualDesktopId == DEFAULT_GUID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool modified{ false };
|
||||
for (auto it = deviceInfoMap.begin(); it != deviceInfoMap.end();)
|
||||
{
|
||||
|
@ -5,7 +5,6 @@
|
||||
namespace VirtualDesktopUtils
|
||||
{
|
||||
const CLSID CLSID_ImmersiveShell = { 0xC2F03A33, 0x21F5, 0x47FA, 0xB4, 0xBB, 0x15, 0x63, 0x62, 0xA2, 0xF2, 0x39 };
|
||||
const wchar_t GUID_EmptyGUID[] = L"{00000000-0000-0000-0000-000000000000}";
|
||||
|
||||
const wchar_t RegCurrentVirtualDesktop[] = L"CurrentVirtualDesktop";
|
||||
const wchar_t RegVirtualDesktopIds[] = L"VirtualDesktopIDs";
|
||||
@ -44,10 +43,6 @@ namespace VirtualDesktopUtils
|
||||
// Format: <device-id>_<resolution>_<virtual-desktop-id>
|
||||
std::wstring uniqueId = zoneWindow->UniqueId();
|
||||
std::wstring virtualDesktopId = uniqueId.substr(uniqueId.rfind('_') + 1);
|
||||
if (virtualDesktopId == GUID_EmptyGUID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return SUCCEEDED(CLSIDFromString(virtualDesktopId.c_str(), desktopId));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user