diff --git a/src/qt/qt_rendererstack.cpp b/src/qt/qt_rendererstack.cpp index 2f1649126..1d725d0d7 100644 --- a/src/qt/qt_rendererstack.cpp +++ b/src/qt/qt_rendererstack.cpp @@ -59,10 +59,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; @@ -80,16 +78,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;