From 79c645f8cd42a389d3a8e6532b1928499d53dcb0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 21 Sep 2022 14:39:25 +0100 Subject: handle touch devices internally as objects --- src/events/Devices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/events/Devices.cpp') diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index 7ec94435..b8aeae39 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -72,7 +72,7 @@ void Events::listener_newInput(wl_listener* listener, void* data) { break; case WLR_INPUT_DEVICE_TOUCH: Debug::log(LOG, "Attached a touch device with name %s", DEVICE->name); - wlr_cursor_attach_input_device(g_pCompositor->m_sWLRCursor, DEVICE); + g_pInputManager->newTouchDevice(DEVICE); break; case WLR_INPUT_DEVICE_TABLET_TOOL: Debug::log(LOG, "Attached a tablet tool with name %s", DEVICE->name); -- cgit v1.2.3