aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorthejch <[email protected]>2024-04-07 07:21:12 -0700
committerGitHub <[email protected]>2024-04-07 15:21:12 +0100
commit89f775aec20fad9d0fec27bd61139d5e3b0f5c6a (patch)
treef4bb4f7eabf53dfaa3ec74e566c04c32ae673bf7 /src/layout/MasterLayout.cpp
parentd657b59f701a65c7a85986e8d99754716468ee5b (diff)
downloadHyprland-89f775aec20fad9d0fec27bd61139d5e3b0f5c6a.tar.gz
Hyprland-89f775aec20fad9d0fec27bd61139d5e3b0f5c6a.zip
master: fix crash (#5472)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;