Skip to content

Commit

Permalink
xwayland: prevent invalid window configurations for X11 apps (#9253)
Browse files Browse the repository at this point in the history
* fix(xwayland): prevent invalid window configurations for X11 apps

* refact(xwayland): remove unneeded line
  • Loading branch information
nnyyxxxx authored Jan 31, 2025
1 parent e6a9cfa commit ea16b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/desktop/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea16b64

Please sign in to comment.