xwayland: fix crash when trying to initialize without Xwayland installed (#9077)

This commit is contained in:
Zach DeCook
2025-01-20 13:40:51 -05:00
committed by GitHub
parent 9e8d9791c7
commit a661203bb6
5 changed files with 41 additions and 25 deletions

View File

@@ -669,7 +669,7 @@ void CCompositor::initManagers(eManagersInitStage stage) {
g_pDonationNagManager = std::make_unique<CDonationNagManager>();
Debug::log(LOG, "Starting XWayland");
g_pXWayland = std::make_unique<CXWayland>(g_pCompositor->m_bEnableXwayland);
g_pXWayland = std::make_unique<CXWayland>(g_pCompositor->m_bWantsXwayland);
} break;
default: UNREACHABLE();
}