mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[FancyZones] Move windows to the app last zone fix (#24290)
This commit is contained in:
@@ -33,8 +33,7 @@ public:
|
||||
}
|
||||
#endif
|
||||
InitLayout(parentUniqueId);
|
||||
InitSnappedWindows();
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -42,6 +41,7 @@ public:
|
||||
const std::unique_ptr<Layout>& GetLayout() const noexcept { return m_layout; }
|
||||
const std::unique_ptr<LayoutAssignedWindows>& GetLayoutWindows() const noexcept { return m_layoutWindows; }
|
||||
const HWND GetWorkAreaWindow() const noexcept { return m_window; }
|
||||
const GUID GetLayoutId() const noexcept;
|
||||
|
||||
ZoneIndexSet GetWindowZoneIndexes(HWND window) const;
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
bool MoveWindowIntoZoneByDirectionAndPosition(HWND window, DWORD vkCode, bool cycle);
|
||||
bool ExtendWindowByDirectionAndPosition(HWND window, DWORD vkCode);
|
||||
|
||||
void InitSnappedWindows();
|
||||
void SnapWindow(HWND window, const ZoneIndexSet& zones, bool extend = false);
|
||||
void UnsnapWindow(HWND window);
|
||||
|
||||
@@ -69,8 +70,7 @@ protected:
|
||||
private:
|
||||
bool InitWindow(HINSTANCE hinstance);
|
||||
void InitLayout(const FancyZonesDataTypes::WorkAreaId& parentUniqueId);
|
||||
void InitSnappedWindows();
|
||||
|
||||
|
||||
void CalculateZoneSet();
|
||||
void SetWorkAreaWindowAsTopmost(HWND draggedWindow) noexcept;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user