diff options
| author | Daniel Adolfsson <daniel@ashen.se> | 2023-07-13 16:52:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-13 16:52:11 +0200 |
| commit | d3a644d81cede9bfa7c12ddc023b9ca2d69fca3c (patch) | |
| tree | 30d1194e45cdc5ea29cd35332bd200ff20f5bf08 /src/layout/IHyprLayout.hpp | |
| parent | 70dae78c1b5b17288a3e343b87ca6d10244ee937 (diff) | |
Dwindle: Make resize more intuitive (#2681)
* improved resize
* clang-format
* rewrite
* almost legacy behavior when using CORNER_NONE
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
| -rw-r--r-- | src/layout/IHyprLayout.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index fe1f8b5b..a6bd1829 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -15,9 +15,9 @@ struct SLayoutMessageHeader { enum eFullscreenMode : uint8_t; -enum eRectCorner -{ - CORNER_TOPLEFT = 0, +enum eRectCorner { + CORNER_NONE = 0, + CORNER_TOPLEFT, CORNER_TOPRIGHT, CORNER_BOTTOMRIGHT, CORNER_BOTTOMLEFT @@ -76,7 +76,7 @@ interface IHyprLayout { Vector2D holds pixel values Optional pWindow for a specific window */ - virtual void resizeActiveWindow(const Vector2D&, CWindow* pWindow = nullptr) = 0; + virtual void resizeActiveWindow(const Vector2D&, eRectCorner corner = CORNER_NONE, CWindow* pWindow = nullptr) = 0; /* Called when a user requests a move of the current window by a vec Vector2D holds pixel values @@ -146,7 +146,7 @@ interface IHyprLayout { /* Called for replacing any data a layout has for a new window */ - virtual void replaceWindowDataWith(CWindow * from, CWindow * to) = 0; + virtual void replaceWindowDataWith(CWindow* from, CWindow* to) = 0; private: Vector2D m_vBeginDragXY; |
