Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
57e0119d
Commit
57e0119d
authored
Mar 09, 2022
by
Volker Krause
Committed by
Vlad Zahorodnii
Mar 16, 2022
Browse files
Adapt to Qt6's removal of Qt::X11Extras
parent
45abf173
Pipeline
#150818
passed with stage
in 30 minutes and 20 seconds
Changes
25
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
57e0119d
...
...
@@ -60,7 +60,6 @@ target_link_libraries(testClientMachine
Qt::Concurrent
Qt::Test
Qt::Widgets
Qt::X11Extras
KF5::ConfigCore
KF5::WindowSystem
...
...
@@ -70,6 +69,11 @@ target_link_libraries(testClientMachine
${
X11_X11_LIB
}
# to make jenkins happy
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testClientMachine Qt::X11Extras
)
else
()
target_link_libraries
(
testClientMachine Qt::GuiPrivate
)
endif
()
add_test
(
NAME kwin-testClientMachine COMMAND testClientMachine
)
ecm_mark_as_test
(
testClientMachine
)
...
...
@@ -84,13 +88,17 @@ add_executable(testXcbWrapper ${testXcbWrapper_SRCS})
target_link_libraries
(
testXcbWrapper
Qt::Test
Qt::Widgets
Qt::X11Extras
KF5::ConfigCore
KF5::WindowSystem
XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testXcbWrapper Qt::X11Extras
)
else
()
target_link_libraries
(
testXcbWrapper Qt::GuiPrivate
)
endif
()
add_test
(
NAME kwin-testXcbWrapper COMMAND testXcbWrapper
)
ecm_mark_as_test
(
testXcbWrapper
)
...
...
@@ -100,7 +108,6 @@ if (XCB_ICCCM_FOUND)
target_link_libraries
(
testXcbSizeHints
Qt::Test
Qt::Widgets
Qt::X11Extras
KF5::ConfigCore
KF5::WindowSystem
...
...
@@ -108,6 +115,11 @@ if (XCB_ICCCM_FOUND)
XCB::ICCCM
XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testXcbSizeHints Qt::X11Extras
)
else
()
target_link_libraries
(
testXcbSizeHints Qt::GuiPrivate
)
endif
()
add_test
(
NAME kwin-testXcbSizeHints COMMAND testXcbSizeHints
)
ecm_mark_as_test
(
testXcbSizeHints
)
endif
()
...
...
@@ -123,13 +135,17 @@ add_executable(testXcbWindow ${testXcbWindow_SRCS})
target_link_libraries
(
testXcbWindow
Qt::Test
Qt::Widgets
Qt::X11Extras
KF5::ConfigCore
KF5::WindowSystem
XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testXcbWindow Qt::X11Extras
)
else
()
target_link_libraries
(
testXcbWindow Qt::GuiPrivate
)
endif
()
add_test
(
NAME kwin-testXcbWindow COMMAND testXcbWindow
)
ecm_mark_as_test
(
testXcbWindow
)
...
...
autotests/libkwineffects/CMakeLists.txt
View file @
57e0119d
...
...
@@ -16,5 +16,8 @@ kwineffects_unit_tests(
add_executable
(
kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../src/libkwineffects/kwinglplatform.cpp
)
add_test
(
NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest
)
target_link_libraries
(
kwinglplatformtest Qt::Test Qt::Gui Qt::X11Extras KF5::ConfigCore XCB::XCB
)
target_link_libraries
(
kwinglplatformtest Qt::Test Qt::Gui KF5::ConfigCore XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
kwinglplatformtest Qt::X11Extras
)
endif
()
ecm_mark_as_test
(
kwinglplatformtest
)
autotests/libxrenderutils/CMakeLists.txt
View file @
57e0119d
...
...
@@ -5,9 +5,13 @@ target_link_libraries(blendPictureTest
kwinxrenderutils
Qt::Test
Qt::Gui
Qt::X11Extras
XCB::XCB
XCB::RENDER
XCB::XFIXES
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
blendPictureTest Qt::X11Extras
)
else
()
target_link_libraries
(
blendPictureTest Qt::GuiPrivate
)
endif
()
ecm_mark_as_test
(
blendPictureTest
)
autotests/libxrenderutils/blendpicture_test.cpp
View file @
57e0119d
...
...
@@ -8,7 +8,11 @@
*/
#include
<QtTest>
#include
<QLoggingCategory>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
"../testutils.h"
...
...
autotests/tabbox/CMakeLists.txt
View file @
57e0119d
...
...
@@ -22,7 +22,6 @@ target_link_libraries(testTabBoxClientModel
Qt::Quick
Qt::Test
Qt::Widgets
Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore
...
...
@@ -32,6 +31,9 @@ target_link_libraries(testTabBoxClientModel
XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testTabBoxClientModel Qt::X11Extras
)
endif
()
add_test
(
NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel
)
ecm_mark_as_test
(
testTabBoxClientModel
)
...
...
@@ -57,7 +59,6 @@ target_link_libraries(testTabBoxHandler
Qt::Quick
Qt::Test
Qt::Widgets
Qt::X11Extras
Qt::GuiPrivate
KF5::ConfigCore
...
...
@@ -67,6 +68,9 @@ target_link_libraries(testTabBoxHandler
XCB::XCB
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
testTabBoxHandler Qt::X11Extras
)
endif
()
add_test
(
NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler
)
ecm_mark_as_test
(
testTabBoxHandler
)
...
...
autotests/tabbox/test_tabbox_clientmodel.cpp
View file @
57e0119d
...
...
@@ -12,7 +12,11 @@
#include
"../testutils.h"
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
using
namespace
KWin
;
void
TestTabBoxClientModel
::
initTestCase
()
...
...
autotests/tabbox/test_tabbox_handler.cpp
View file @
57e0119d
...
...
@@ -10,7 +10,11 @@
#include
"clientmodel.h"
#include
"../testutils.h"
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
using
namespace
KWin
;
...
...
autotests/test_client_machine.cpp
View file @
57e0119d
...
...
@@ -13,7 +13,11 @@
// Qt
#include
<QApplication>
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
// xcb
#include
<xcb/xcb.h>
// system
...
...
autotests/test_x11_timestamp_update.cpp
View file @
57e0119d
...
...
@@ -8,7 +8,11 @@
*/
#include
<QTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
<KPluginMetaData>
...
...
autotests/test_xcb_size_hints.cpp
View file @
57e0119d
...
...
@@ -12,7 +12,11 @@
// Qt
#include
<QApplication>
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
<netwm.h>
// xcb
#include
<xcb/xcb.h>
...
...
autotests/test_xcb_window.cpp
View file @
57e0119d
...
...
@@ -12,7 +12,11 @@
// Qt
#include
<QApplication>
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
// xcb
#include
<xcb/xcb.h>
...
...
autotests/test_xcb_wrapper.cpp
View file @
57e0119d
...
...
@@ -12,7 +12,11 @@
// Qt
#include
<QApplication>
#include
<QtTest>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
<netwm.h>
// xcb
#include
<xcb/xcb.h>
...
...
src/CMakeLists.txt
View file @
57e0119d
...
...
@@ -288,8 +288,10 @@ add_executable(kwin_x11 main_x11.cpp)
target_link_libraries
(
kwin_x11
kwin
KF5::Crash
Qt::X11Extras
)
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
)
...
...
src/backends/x11/standalone/CMakeLists.txt
View file @
57e0119d
...
...
@@ -17,7 +17,10 @@ set(X11PLATFORM_SOURCES
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 Qt::X11Extras KF5::Crash X11::X11
)
target_link_libraries
(
KWinX11Platform eglx11common kwin kwinxrenderutils KF5::Crash X11::X11
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
KWinX11Platform Qt::X11Extras
)
endif
()
if
(
X11_Xi_FOUND
)
target_sources
(
KWinX11Platform PRIVATE xinputintegration.cpp
)
target_link_libraries
(
KWinX11Platform X11::Xi
)
...
...
src/backends/x11/standalone/glxbackend.cpp
View file @
57e0119d
...
...
@@ -38,7 +38,11 @@
// Qt
#include
<QDebug>
#include
<QOpenGLContext>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
<QtPlatformHeaders/QGLXNativeContext>
// system
#include
<unistd.h>
...
...
src/backends/x11/standalone/omlsynccontrolvsyncmonitor.cpp
View file @
57e0119d
...
...
@@ -8,7 +8,11 @@
#include
"glxconvenience.h"
#include
"logging.h"
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
namespace
KWin
{
...
...
src/backends/x11/standalone/sgivideosyncvsyncmonitor.cpp
View file @
57e0119d
...
...
@@ -8,7 +8,11 @@
#include
"glxconvenience.h"
#include
"logging.h"
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
namespace
KWin
{
...
...
src/backends/x11/standalone/x11_platform.cpp
View file @
57e0119d
...
...
@@ -42,7 +42,11 @@
#include
<QThread>
#include
<QOpenGLContext>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
namespace
KWin
{
...
...
src/helpers/killer/CMakeLists.txt
View file @
57e0119d
...
...
@@ -9,7 +9,11 @@ target_link_libraries(kwin_killer_helper
KF5::I18n
KF5::WidgetsAddons
Qt::Widgets
Qt::X11Extras
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
target_link_libraries
(
kwin_killer_helper Qt::X11Extras
)
else
()
target_link_libraries
(
kwin_killer_helper Qt::GuiPrivate
)
endif
()
install
(
TARGETS kwin_killer_helper DESTINATION
${
KDE_INSTALL_LIBEXECDIR
}
)
src/helpers/killer/killer.cpp
View file @
57e0119d
...
...
@@ -17,7 +17,11 @@
#include
<QCommandLineParser>
#include
<QDebug>
#include
<QProcess>
#include
<QtX11Extras/QX11Info>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#include
<QX11Info>
#endif
#include
<xcb/xcb.h>
#include
<cerrno>
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment