Link Qt X11Extras in kwin core library

QX11Info is used in `platform.cpp`, which is used by both
kwin_x11 and kwin_wayland. The latter only gets it implicitly
through KGlobalAccelPrivate.

Ideally, platform.cpp was split to not require QX11Info in
kwin_wayland in the first place.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
This commit is contained in:
Kai Uwe Broulik 2022-05-16 10:41:16 +02:00 committed by Kai Uwe Broulik
parent edf9698e23
commit 701bfc71be

View file

@ -210,7 +210,7 @@ target_link_libraries(kwin
lcms2::lcms2
)
if (QT_MAJOR_VERSION EQUAL "5")
target_link_libraries(kwin Qt5::XkbCommonSupportPrivate)
target_link_libraries(kwin Qt5::X11Extras Qt5::XkbCommonSupportPrivate)
endif()
if (KWIN_BUILD_NOTIFICATIONS)
@ -289,9 +289,6 @@ target_link_libraries(kwin_x11
kwin
KF5::Crash
)
if (QT_MAJOR_VERSION EQUAL "5")
target_link_libraries(kwin_x11 Qt::X11Extras)
endif()
kcoreaddons_target_static_plugins(kwin_x11 "kwin/effects/plugins")
install(TARGETS kwin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)