summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-09-21 14:39:25 +0100
committervaxerski <vaxry@vaxry.net>2022-09-21 14:39:34 +0100
commit79c645f8cd42a389d3a8e6532b1928499d53dcb0 (patch)
treebfe7a2310c9940cc70208a0f4beeda13fd51a173 /src/events/Devices.cpp
parentd44cc9f112b3162263304c4077d6cb2a97f55715 (diff)
handle touch devices internally as objects
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp2
1 files changed, 1 insertions, 1 deletions
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);