From 5503d99778a2c62136ea54db866ddc024fc60c2e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 24 Mar 2022 18:31:45 +0100 Subject: [PATCH] bring back mouse request --- src/events/Devices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index 330cc2b9..78b987dc 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -58,8 +58,8 @@ 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); + 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); } void Events::listener_newInput(wl_listener* listener, void* data) {