mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 23:05:58 +01:00
xwaylandmgr: proper clamping for setWindowSize
closes #4622 fixes #4621
This commit is contained in:
parent
f9202f791e
commit
1fd82e37a7
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f
|
|||
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
||||
|
||||
size = size.clamp(Vector2D{0, 0});
|
||||
size = size.clamp(Vector2D{0, 0}, Vector2D{std::numeric_limits<double>::infinity(), std::numeric_limits<double>::infinity()});
|
||||
|
||||
// calculate pos
|
||||
// TODO: this should be decoupled from setWindowSize IMO
|
||||
|
|
Loading…
Reference in a new issue