layout: add size prediction for initial xdg commits

fixes #4022
This commit is contained in:
vaxerski
2024-02-28 11:45:43 +00:00
parent c198d744b7
commit f4f3aa2e50
7 changed files with 100 additions and 9 deletions

View File

@@ -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;