diff --git a/CMakeLists.txt b/CMakeLists.txt index bd3862a6b8..c3d48fd1f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,7 +228,7 @@ set_package_properties(X11 PROPERTIES URL "https://www.x.org" TYPE REQUIRED ) -add_feature_info("XInput" X11_Xinput_FOUND "Required for poll-free mouse cursor updates") +add_feature_info("XInput" X11_Xi_FOUND "Required for poll-free mouse cursor updates") set(HAVE_X11_XINPUT ${X11_Xinput_FOUND}) find_package(lcms2) diff --git a/plugins/platforms/x11/standalone/CMakeLists.txt b/plugins/platforms/x11/standalone/CMakeLists.txt index 7b9639b2d4..27ef2658cf 100644 --- a/plugins/platforms/x11/standalone/CMakeLists.txt +++ b/plugins/platforms/x11/standalone/CMakeLists.txt @@ -29,8 +29,8 @@ endif() add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES}) set_target_properties(KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.platforms/") target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend VsyncSupport Qt5::X11Extras XCB::CURSOR KF5::Crash X11::X11) -if (X11_Xinput_FOUND) - target_link_libraries(KWinX11Platform ${X11_Xinput_LIB}) +if (X11_Xi_FOUND) + target_link_libraries(KWinX11Platform X11::Xi) endif() if (KWIN_BUILD_XRENDER_COMPOSITING) diff --git a/plugins/platforms/x11/windowed/CMakeLists.txt b/plugins/platforms/x11/windowed/CMakeLists.txt index f192b9ad2a..3b4e92b5fa 100644 --- a/plugins/platforms/x11/windowed/CMakeLists.txt +++ b/plugins/platforms/x11/windowed/CMakeLists.txt @@ -9,8 +9,8 @@ set(X11BACKEND_SOURCES add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES}) set_target_properties(KWinWaylandX11Backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB SceneQPainterBackend SceneOpenGLBackend VsyncSupport X11::X11) -if (X11_Xinput_FOUND) - target_link_libraries(KWinWaylandX11Backend ${X11_Xinput_LIB}) +if (X11_Xi_FOUND) + target_link_libraries(KWinWaylandX11Backend X11::Xi) endif() install(