mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-29 23:26:15 +03:00
input: check for focused_client being null before reading its client
ref #5673
This commit is contained in:
parent
1ce21fdb3e
commit
93e5d7ca5a
@ -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 New Issue
Block a user