mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 23:05:58 +01:00
parent
84ab8d11e8
commit
f9202f791e
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,8 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f
|
|||
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
||||
|
||||
size = size.clamp(Vector2D{0, 0});
|
||||
|
||||
// calculate pos
|
||||
// TODO: this should be decoupled from setWindowSize IMO
|
||||
Vector2D windowPos = pWindow->m_vRealPosition.vec();
|
||||
|
|
Loading…
Reference in a new issue