mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-24 22:10:03 +01:00
xwayland: prevent invalid window configurations for X11 apps (#9253)
* fix(xwayland): prevent invalid window configurations for X11 apps * refact(xwayland): remove unneeded line
This commit is contained in:
parent
e6a9cfab91
commit
ea16b64ec1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue