From 89f775aec20fad9d0fec27bd61139d5e3b0f5c6a Mon Sep 17 00:00:00 2001 From: thejch <66577496+thejch@users.noreply.github.com> Date: Sun, 7 Apr 2024 07:21:12 -0700 Subject: [PATCH] master: fix crash (#5472) --- src/layout/MasterLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;