summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r--src/layout/IHyprLayout.hpp6
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;