diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-02-28 11:45:43 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-02-28 11:45:43 +0000 |
| commit | f4f3aa2e505ca1b22688fb4a32f31c4bfb851dd0 (patch) | |
| tree | 98c8547e45a04445b24b2aa90b0a3e0d302a0cd6 /src/layout/IHyprLayout.hpp | |
| parent | c198d744b77f272c2fc187eb6d431580a99ab6c3 (diff) | |
layout: add size prediction for initial xdg commits
fixes #4022
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 5c74078e..ffe004bc 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -181,6 +181,12 @@ class IHyprLayout { */ virtual void requestFocusForWindow(CWindow*); + /* + Called to predict the size of a newly opened window to send it a configure. + Return 0,0 if unpredictable + */ + virtual Vector2D predictSizeForNewWindow(); + private: Vector2D m_vBeginDragXY; Vector2D m_vLastDragXY; |
