diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-01-31 07:26:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 13:26:08 +0100 |
| commit | ea16b64ec169afcd21020dfb819a73c37428c7f2 (patch) | |
| tree | f4a5d6a733b9a03c30322896ab372a052ec161db /src/desktop/Window.cpp | |
| parent | e6a9cfab9199788ee0dcefd8b1bda46f93e6a001 (diff) | |
xwayland: prevent invalid window configurations for X11 apps (#9253)
* fix(xwayland): prevent invalid window configurations for X11 apps
* refact(xwayland): remove unneeded line
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 09037cbd..91c76e7c 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1700,7 +1700,7 @@ void CWindow::sendWindowSize(Vector2D size, bool force, std::optional<Vector2D> const auto PMONITOR = m_pMonitor.lock(); - size = size.clamp(Vector2D{0, 0}, Vector2D{std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity()}); + size = size.clamp(Vector2D{1, 1}, Vector2D{std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity()}); // calculate pos // TODO: this should be decoupled from setWindowSize IMO |
