qt: Raise minimum Xi2 version requirement to 2.1

This is needed for click-and-drag to work with both Qt5 and Qt6, especially the latter which was previously broken, without any hacks.
This commit is contained in:
Cacodemon345
2022-08-12 13:24:29 +06:00
parent f2cf5dd841
commit ad3bba009a
2 changed files with 2 additions and 8 deletions

View File

@@ -75,15 +75,10 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
if (!mouse_type || (mouse_type[0] == '\0') || !stricmp(mouse_type, "auto")) {
if (QApplication::platformName().contains("wayland"))
strcpy(auto_mouse_type, "wayland");
# if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
else if (QApplication::platformName() == "eglfs")
strcpy(auto_mouse_type, "evdev");
else if (QApplication::platformName() == "xcb")
strcpy(auto_mouse_type, "xinput2");
# else
else if (QApplication::platformName() == "eglfs" || QApplication::platformName() == "xcb")
strcpy(auto_mouse_type, "evdev");
# endif
else
auto_mouse_type[0] = '\0';
mouse_type = auto_mouse_type;