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:
parent
b29f211fe4
commit
3b05823f1f
3 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue