Codebase list libkscreen / 8ac83c8
Update kwayland-optional patch. Norbert Preining 3 years ago
2 changed file(s) with 17 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
22 [ Norbert Preining ]
33 * New upstream beta release (5.20.90).
44 * Update build-deps and deps with the info from cmake.
5 * Update kwayland-optional patch.
56
67 -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Fri, 22 Jan 2021 11:02:01 +0900
78
55 .
66 This allows the build of libkscreen and its dependencies in non linux arches.
77
8 ---
9 CMakeLists.txt | 2 +-
10 autotests/CMakeLists.txt | 42 +++++++++++++++++++++++-------------------
11 backends/CMakeLists.txt | 4 +++-
12 src/doctor/CMakeLists.txt | 12 ++++++++++--
13 src/doctor/doctor.cpp | 10 ++++++++++
14 tests/CMakeLists.txt | 4 +++-
15 6 files changed, 50 insertions(+), 24 deletions(-)
16
817 --- a/CMakeLists.txt
918 +++ b/CMakeLists.txt
10 @@ -25,7 +25,7 @@ include(KDEClangFormat)
19 @@ -28,7 +28,7 @@ include(KDEClangFormat)
1120 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Gui Test X11Extras)
1221
1322 # Wayland backend
122131 #include "dpmsclient.h"
123132 +#endif
124133
134 #include <QCommandLineParser>
125135 #include <QCoreApplication>
126 #include <QCommandLineParser>
127 @@ -92,6 +94,7 @@ void Doctor::start(QCommandLineParser *p
136 @@ -89,6 +91,7 @@ void Doctor::start(QCommandLineParser *p
128137 return;
129138 }
130139 if (m_parser->isSet(QStringLiteral("dpms"))) {
132141 if (!QGuiApplication::platformName().startsWith(QLatin1String("wayland"))) {
133142 cerr << "DPMS is only supported on Wayland." << endl;
134143 // We need to kick the event loop, otherwise .quit() hangs
135 @@ -108,6 +111,9 @@ void Doctor::start(QCommandLineParser *p
144 @@ -110,6 +113,9 @@ void Doctor::start(QCommandLineParser *p
136145 } else {
137146 setDpms(dpmsArg);
138147 }
142151 return;
143152 }
144153
145 @@ -126,6 +132,7 @@ void Doctor::start(QCommandLineParser *p
154 @@ -127,6 +133,7 @@ void Doctor::start(QCommandLineParser *p
146155
147 void KScreen::Doctor::setDpms(const QString& dpmsArg)
156 void KScreen::Doctor::setDpms(const QString &dpmsArg)
148157 {
149158 +#ifdef HAVE_KWAYLAND
150159 qDebug() << "SetDpms: " << dpmsArg;
151160 connect(m_dpmsClient, &DpmsClient::ready, this, [this, dpmsArg]() {
152161 cout << "DPMS.ready()";
153 @@ -139,11 +146,13 @@ void KScreen::Doctor::setDpms(const QStr
162 @@ -140,10 +147,12 @@ void KScreen::Doctor::setDpms(const QStr
154163 });
155164
156165 m_dpmsClient->connect();
157166 +#endif
158167 }
159
160168
161169 void Doctor::showDpms()
162170 {