summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-29 00:43:50 +0000
committerVaxry <vaxry@vaxry.net>2024-03-29 00:43:50 +0000
commitfcd9d77b642c0cd45cae61cf10ed1924f2e7945b (patch)
tree89390e51077b58973fb444327687ee279523499c /src/layout/IHyprLayout.hpp
parent2930c5cb6f5d71dbdfd4d396287f90e19cd41228 (diff)
layout: improve initial size prediction for floating
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;