mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
@@ -151,6 +151,8 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f
|
|||||||
|
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
||||||
|
|
||||||
|
size = size.clamp(Vector2D{0, 0});
|
||||||
|
|
||||||
// calculate pos
|
// calculate pos
|
||||||
// TODO: this should be decoupled from setWindowSize IMO
|
// TODO: this should be decoupled from setWindowSize IMO
|
||||||
Vector2D windowPos = pWindow->m_vRealPosition.vec();
|
Vector2D windowPos = pWindow->m_vRealPosition.vec();
|
||||||
|
Reference in New Issue
Block a user