diff options
Diffstat (limited to 'src/events/Devices.cpp')
| -rw-r--r-- | src/events/Devices.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index 0bd91a48..57fb221f 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -56,8 +56,7 @@ void Events::listener_mouseAxis(wl_listener* listener, void* data) { void Events::listener_requestMouse(wl_listener* listener, void* data) { const auto EVENT = (wlr_seat_pointer_request_set_cursor_event*)data; - - // TODO: crashes sometimes + if (EVENT->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client) wlr_cursor_set_surface(g_pCompositor->m_sWLRCursor, EVENT->surface, EVENT->hotspot_x, EVENT->hotspot_y); } |
