expo: fix crash in dispatcher

fixes #475
This commit is contained in:
Vaxry 2025-09-13 00:34:02 +01:00
parent 51b8f80183
commit 8ba54e332c
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -66,7 +66,7 @@ static void hkAddDamageB(void* thisptr, const pixman_region32_t* rg) {
static SDispatchResult onExpoDispatcher(std::string arg) {
if (g_pOverview->m_isSwiping)
if (g_pOverview && g_pOverview->m_isSwiping)
return {.success = false, .error = "already swiping"};
if (arg == "select") {