mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[FancyZones] Restore size of zoned windows (#4463)
* Started work * I can't debug anything, cleaning * Added settings, [[Not Tested]] Not even compiled * Tested, the most basic features work * Refactor, add RestoreSize * Added DPI awareness * Fixed a potential issue with resizing zoned windows * Fixup: Potentially unsafe memory-layout of std::pair replaced with std::array * Fixup: Use .data() instead of a pointer * Further refactoring * Integrated Win+Arrow keys with the Restore size feature * Fixed an issue where window's on-screen position is not restored properly * Fixed a bug pointed out by Enrico
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#define MULTI_ZONE_STAMP L"FancyZones_zones"
|
||||
#define RESTORE_SIZE_STAMP L"FancyZones_RestoreSize"
|
||||
#define RESTORE_ORIGIN_STAMP L"FancyZones_RestoreOrigin"
|
||||
#include <common/settings_objects.h>
|
||||
|
||||
struct Settings
|
||||
@@ -14,6 +16,7 @@ struct Settings
|
||||
bool overrideSnapHotkeys = false;
|
||||
bool moveWindowAcrossMonitors = false;
|
||||
bool appLastZone_moveWindows = false;
|
||||
bool restoreSize = false;
|
||||
bool use_cursorpos_editor_startupscreen = true;
|
||||
bool showZonesOnAllMonitors = false;
|
||||
bool makeDraggedWindowTransparent = true;
|
||||
|
||||
Reference in New Issue
Block a user