summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authornyx <nnyyxxxx@protonmail.com>2025-01-31 07:26:08 -0500
committerGitHub <noreply@github.com>2025-01-31 13:26:08 +0100
commitea16b64ec169afcd21020dfb819a73c37428c7f2 (patch)
treef4a5d6a733b9a03c30322896ab372a052ec161db /src/desktop/Window.cpp
parente6a9cfab9199788ee0dcefd8b1bda46f93e6a001 (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.cpp2
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