mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[FancyZones] Keep the same layouts on the new virtual desktops. (#23927)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "GuidUtils.h"
|
||||
#include <FancyZonesLib/FancyZonesDataTypes.h>
|
||||
|
||||
class WorkArea;
|
||||
|
||||
@@ -48,6 +49,13 @@ public:
|
||||
*/
|
||||
void AddWorkArea(HMONITOR monitor, std::unique_ptr<WorkArea> workArea);
|
||||
|
||||
FancyZonesDataTypes::WorkAreaId GetParent(HMONITOR monitor) const;
|
||||
|
||||
/**
|
||||
* Saving current work area IDs as parents for later use.
|
||||
*/
|
||||
void SaveParentIds();
|
||||
|
||||
/**
|
||||
* Clear all persisted work area related data.
|
||||
*/
|
||||
@@ -55,4 +63,5 @@ public:
|
||||
|
||||
private:
|
||||
std::unordered_map<HMONITOR, std::unique_ptr<WorkArea>> m_workAreaMap;
|
||||
std::unordered_map<HMONITOR, FancyZonesDataTypes::WorkAreaId> m_workAreaParents{};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user