[FancyZones]Additional logs (#16927)

This commit is contained in:
Seraphima Zykova
2022-03-10 09:59:31 -08:00
committed by GitHub
parent a8fb9e0804
commit 0816714782
10 changed files with 98 additions and 36 deletions

View File

@@ -3,6 +3,8 @@
#include "VirtualDesktop.h"
#include "util.h"
#include <common/logger/logger.h>
winrt::com_ptr<IWorkArea> MonitorWorkAreaHandler::GetWorkArea(const GUID& desktopId, HMONITOR monitor)
{
auto desktopIt = workAreaMap.find(desktopId);
@@ -83,6 +85,12 @@ void MonitorWorkAreaHandler::AddWorkArea(const GUID& desktopId, HMONITOR monitor
if (!workAreaMap.contains(desktopId))
{
workAreaMap[desktopId] = {};
auto desktopIdStr = FancyZonesUtils::GuidToString(desktopId);
if (desktopIdStr)
{
Logger::info(L"Add work area on the desktop {}", desktopIdStr.value());
}
}
auto& perDesktopData = workAreaMap[desktopId];
perDesktopData[monitor] = std::move(workArea);