diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-01-25 20:36:44 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-01-25 20:36:44 +0000 |
| commit | 445acec2a29adbb30196d8b92f86270a038b7ee5 (patch) | |
| tree | 1d496f4b04ba4179d94f160a500e4ab4dfadee92 /src/desktop/Window.hpp | |
| parent | 45c3787e75323999d2f43b6f83972f4cb11a81f9 (diff) | |
core: move sendWindowSize off of xwaylandmgr
additionally fixes that one weird x11 issue with floating windows being mis-sized on open
Diffstat (limited to 'src/desktop/Window.hpp')
| -rw-r--r-- | src/desktop/Window.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index cff13b03..ce2f8eb2 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -2,6 +2,7 @@ #include <vector> #include <string> +#include <optional> #include "../config/ConfigDataValues.hpp" #include "../helpers/AnimatedVariable.hpp" @@ -468,6 +469,7 @@ class CWindow { bool isModal(); Vector2D requestedMinSize(); Vector2D requestedMaxSize(); + void sendWindowSize(Vector2D size, bool force = false, std::optional<Vector2D> overridePos = std::nullopt); CBox getWindowMainSurfaceBox() const { return {m_vRealPosition->value().x, m_vRealPosition->value().y, m_vRealSize->value().x, m_vRealSize->value().y}; |
