diff options
| author | Mike Will <myQwil@gmail.com> | 2025-07-15 16:24:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-15 22:24:40 +0200 |
| commit | 8453fbf4eb0af2e3265fd34a693b7d0e9167f4d2 (patch) | |
| tree | 06f0f728453228226388f1cad124f306a538c60a /src/layout/IHyprLayout.hpp | |
| parent | e15014e031589e1df2dc29a5ce94325676796ac4 (diff) | |
snap: fix `border_overlap` option for monitor snapping (#10987)
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
| -rw-r--r-- | src/layout/IHyprLayout.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index fd63d154..1e1141da 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -1,6 +1,7 @@ #pragma once #include "../defines.hpp" +#include "../managers/input/InputManager.hpp" #include <any> class CWindow; @@ -211,6 +212,11 @@ class IHyprLayout { */ virtual bool updateDragWindow(); + /* + Triggers a window snap event + */ + virtual void performSnap(Vector2D& sourcePos, Vector2D& sourceSize, PHLWINDOW DRAGGINGWINDOW, const eMouseBindMode MODE, const int CORNER, const Vector2D& BEGINSIZE); + private: int m_mouseMoveEventCount; Vector2D m_beginDragXY; |
