From 93e5d7ca5adb43b1c40b19661a7c0df86c713117 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 21 Apr 2024 15:17:05 +0100 Subject: [PATCH] input: check for focused_client being null before reading its client ref #5673 --- src/managers/input/InputManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 4a7fc11a..bf784af1 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -13,6 +13,9 @@ CInputManager::CInputManager() { auto event = std::any_cast(data); + if (!g_pCompositor->m_sSeat.seat->pointer_state.focused_client) + return; + if (wl_resource_get_client(event.pMgr->resource()) != g_pCompositor->m_sSeat.seat->pointer_state.focused_client->client) return;