diff options
| author | Hiroki Tagato <tagattie@gmail.com> | 2025-11-14 07:06:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-13 22:06:34 +0000 |
| commit | 43527d363472b52f17dd9f9f4f87ec25cbf8a399 (patch) | |
| tree | fd3f1c12b4e31e00deff6fc3d77b025803c8fe9e /src/layout/MasterLayout.cpp | |
| parent | 55a93b8a52ad3bd2c0a7468e8f79f5667eea0702 (diff) | |
internal: fix crash at startup on FreeBSD (#12298)
Hyprland at the latest commit crashes at starting up on FreeBSD with
SIGSEGV. Checking the validity of g_pXWayland->m_wm before calling
updateWorkArea() appears to fix the issue.
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index b40c339a..5dde65d6 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -297,6 +297,8 @@ void CHyprMasterLayout::recalculateMonitor(const MONITORID& monid) { #ifndef NO_XWAYLAND CBox box = g_pCompositor->calculateX11WorkArea(); + if (!g_pXWayland || !g_pXWayland->m_wm) + return; g_pXWayland->m_wm->updateWorkArea(box.x, box.y, box.w, box.h); #endif } |
