master: fix crash (#5472)

This commit is contained in:
thejch 2024-04-07 07:21:12 -07:00 committed by GitHub
parent d657b59f70
commit 89f775aec2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -726,7 +726,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne
static auto ALWAYSCENTER = CConfigValue<Hyprlang::INT>("master:always_center_master");
static auto PSMARTRESIZING = CConfigValue<Hyprlang::INT>("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;