libinput: bump required version

So we can remove ifdefs and weird cases to support versions that are far
too old to support anyway.
This commit is contained in:
Aleix Pol 2021-05-12 02:56:37 +02:00 committed by Aleix Pol Gonzalez
parent b29f211fe4
commit 3b05823f1f
3 changed files with 1 additions and 7 deletions

View file

@ -191,7 +191,7 @@ set_package_properties(XKB PROPERTIES
find_package(Qt5XkbCommonSupport REQUIRED)
find_package(Libinput 1.9)
find_package(Libinput 1.14)
set_package_properties(Libinput PROPERTIES TYPE REQUIRED PURPOSE "Required for input handling on Wayland.")
find_package(UDev)

View file

@ -176,10 +176,6 @@ ki18n_wrap_ui(kwin_SRCS
)
add_library(kwin SHARED ${kwin_SRCS})
if (Libinput_VERSION_STRING VERSION_GREATER 1.14)
set_source_files_properties(libinput/connection.cpp PROPERTIES COMPILE_DEFINITIONS LIBINPUT_HAS_TOTEM)
endif ()
set_target_properties(kwin PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}

View file

@ -299,11 +299,9 @@ KWin::TabletToolId createTabletId(libinput_tablet_tool *tool, void *userData)
case LIBINPUT_TABLET_TOOL_TYPE_LENS:
toolType = InputRedirection::Lens;
break;
#ifdef LIBINPUT_HAS_TOTEM
case LIBINPUT_TABLET_TOOL_TYPE_TOTEM:
toolType = InputRedirection::Totem;
break;
#endif
}
QVector<InputRedirection::Capability> capabilities;
if (libinput_tablet_tool_has_pressure(tool)) {