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.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index e168556e..d6c41d3b 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -187,7 +187,13 @@ class IHyprLayout {
Called to predict the size of a newly opened window to send it a configure.
Return 0,0 if unpredictable
*/
- virtual Vector2D predictSizeForNewWindow();
+ virtual Vector2D predictSizeForNewWindowTiled() = 0;
+
+ /*
+ Prefer not overriding, use predictSizeForNewWindowTiled.
+ */
+ virtual Vector2D predictSizeForNewWindow(CWindow* pWindow);
+ virtual Vector2D predictSizeForNewWindowFloating(CWindow* pWindow);
private:
int m_iMouseMoveEventCount;