mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[FancyZones] Window switch shortcut fix (#21426)
* rename Layout -> LayoutData * simplify zone * split ZoneSet: Layout * refactoring * split ZoneSet: LayoutWindows * update trace * split ZoneSet: remove ZoneSet * fix initialization * split unit tests * remove unused * warning * nullptr check * use current rect * update work area tests * use current rect * simplify * more meaningful name * dismiss * safety checks * resolve conflicts * reassign windows after switching vd * avoid double-processing for window on switching vd * extend windows fix * check if window is on current desktop before cycling * separated extend * not reinit layout windows
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <guiddef.h>
|
||||
|
||||
#include <FancyZonesLib/FancyZonesData/LayoutDefaults.h>
|
||||
#include <FancyZonesLib/FancyZonesDataTypes.h>
|
||||
|
||||
struct LayoutData
|
||||
{
|
||||
GUID uuid = GUID_NULL;
|
||||
FancyZonesDataTypes::ZoneSetLayoutType type = FancyZonesDataTypes::ZoneSetLayoutType::PriorityGrid;
|
||||
bool showSpacing = DefaultValues::ShowSpacing;
|
||||
int spacing = DefaultValues::Spacing;
|
||||
int zoneCount = DefaultValues::ZoneCount;
|
||||
int sensitivityRadius = DefaultValues::SensitivityRadius;
|
||||
};
|
||||
|
||||
inline bool operator==(const LayoutData& lhs, const LayoutData& rhs)
|
||||
{
|
||||
return lhs.uuid == rhs.uuid &&
|
||||
lhs.type == rhs.type &&
|
||||
lhs.showSpacing == rhs.showSpacing &&
|
||||
lhs.spacing == rhs.spacing &&
|
||||
lhs.zoneCount == rhs.zoneCount &&
|
||||
lhs.sensitivityRadius == rhs.sensitivityRadius;
|
||||
}
|
||||
Reference in New Issue
Block a user