summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-10-29 23:21:28 +0000
committerGitHub <noreply@github.com>2025-10-29 23:21:28 +0000
commit6ade4d58cab67e18aa758ef664e36421cab4d8b2 (patch)
treebab86dd894b6720136ffaa4dcc0bc4267cd119a7 /src/layout/IHyprLayout.hpp
parent83a0a62004ee915921ac36a96760944ad6550e1e (diff)
layout: fit floating window on toggle to float (#12139)
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r--src/layout/IHyprLayout.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index 027c95a5..d97a2ba8 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -225,6 +225,11 @@ class IHyprLayout {
*/
virtual void performSnap(Vector2D& sourcePos, Vector2D& sourceSize, PHLWINDOW DRAGGINGWINDOW, const eMouseBindMode MODE, const int CORNER, const Vector2D& BEGINSIZE);
+ /*
+ Fits a floating window on its monitor
+ */
+ virtual void fitFloatingWindowOnMonitor(PHLWINDOW w, std::optional<CBox> targetBox = std::nullopt);
+
private:
int m_mouseMoveEventCount;
Vector2D m_beginDragXY;