input: check for focused_client being null before reading its client

ref #5673
This commit is contained in:
Vaxry 2024-04-21 15:17:05 +01:00
parent 1ce21fdb3e
commit 93e5d7ca5a
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ CInputManager::CInputManager() {
auto event = std::any_cast<CCursorShapeProtocol::SSetShapeEvent>(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;