mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
Don't poll for changes in HKEY_CURRENT_USER, but only for VirtualDesktops reg key. (#2496)
This commit is contained in:
@@ -1123,7 +1123,7 @@ void FancyZones::HandleVirtualDesktopUpdates(HANDLE fancyZonesDestroyedEvent) no
|
|||||||
HANDLE events[2] = { regKeyEvent, fancyZonesDestroyedEvent };
|
HANDLE events[2] = { regKeyEvent, fancyZonesDestroyedEvent };
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (RegNotifyChangeKeyValue(HKEY_CURRENT_USER, TRUE, REG_NOTIFY_CHANGE_LAST_SET, regKeyEvent, TRUE) != ERROR_SUCCESS)
|
if (RegNotifyChangeKeyValue(m_virtualDesktopsRegKey, TRUE, REG_NOTIFY_CHANGE_LAST_SET, regKeyEvent, TRUE) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user