From 62b92386bb14b16f7ec54c4384ced8a1e72f59d1 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 25 Apr 2022 14:51:17 +0600 Subject: [PATCH] qt: Disable Xi2 mouse input backend --- src/qt/qt_rendererstack.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/qt/qt_rendererstack.cpp b/src/qt/qt_rendererstack.cpp index a78202d05..c6aefb679 100644 --- a/src/qt/qt_rendererstack.cpp +++ b/src/qt/qt_rendererstack.cpp @@ -55,10 +55,8 @@ RendererStack::RendererStack(QWidget *parent) if (!mouse_type || (mouse_type[0] == '\0') || !stricmp(mouse_type, "auto")) { if (QApplication::platformName().contains("wayland")) strcpy(auto_mouse_type, "wayland"); - else if (QApplication::platformName() == "eglfs") + else if (QApplication::platformName() == "eglfs" || QApplication::platformName() == "xcb") strcpy(auto_mouse_type, "evdev"); - else if (QApplication::platformName() == "xcb") - strcpy(auto_mouse_type, "xinput2"); else auto_mouse_type[0] = '\0'; mouse_type = auto_mouse_type; @@ -76,16 +74,8 @@ RendererStack::RendererStack(QWidget *parent) if (!stricmp(mouse_type, "evdev")) { evdev_init(); this->mouse_poll_func = evdev_mouse_poll; - } else -# endif - if (!stricmp(mouse_type, "xinput2")) { - extern void xinput2_init(); - extern void xinput2_poll(); - extern void xinput2_exit(); - xinput2_init(); - this->mouse_poll_func = xinput2_poll; - this->mouse_exit_func = xinput2_exit; } +# endif #endif #ifdef __APPLE__ this->mouse_poll_func = macos_poll_mouse;