diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 9d02b2c1..2f9a5cc0 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -726,7 +726,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne static auto ALWAYSCENTER = CConfigValue("master:always_center_master"); static auto PSMARTRESIZING = CConfigValue("master:smart_resizing"); - eOrientation orientation = getDynamicOrientation(pWindow->m_pWorkspace); + eOrientation orientation = getDynamicOrientation(PWINDOW->m_pWorkspace); bool centered = orientation == ORIENTATION_CENTER && (*ALWAYSCENTER == 1); double delta = 0;