mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 14:05:58 +01:00
input: check for focused_client being null before reading its client
ref #5673
This commit is contained in:
parent
1ce21fdb3e
commit
93e5d7ca5a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue