diff --git a/libcolorcorrect/CMakeLists.txt b/libcolorcorrect/CMakeLists.txt --- a/libcolorcorrect/CMakeLists.txt +++ b/libcolorcorrect/CMakeLists.txt @@ -23,7 +23,6 @@ Qt5::Core Qt5::Quick PRIVATE - KF5::WindowSystem KF5::I18n Qt5::DBus) diff --git a/libcolorcorrect/compositorcoloradaptor.h b/libcolorcorrect/compositorcoloradaptor.h --- a/libcolorcorrect/compositorcoloradaptor.h +++ b/libcolorcorrect/compositorcoloradaptor.h @@ -90,9 +90,7 @@ // couldn't establish connection to compositor ErrorCodeConnectionFailed, // rendering backend doesn't support hardware color correction - ErrorCodeBackendNoSupport, - // it's an X session - no native color correction in general on X - ErrorCodeXSession + ErrorCodeBackendNoSupport }; Q_ENUMS(ErrorCode) diff --git a/libcolorcorrect/compositorcoloradaptor.cpp b/libcolorcorrect/compositorcoloradaptor.cpp --- a/libcolorcorrect/compositorcoloradaptor.cpp +++ b/libcolorcorrect/compositorcoloradaptor.cpp @@ -16,7 +16,6 @@ *********************************************************************/ #include "compositorcoloradaptor.h" -#include #include #include @@ -28,10 +27,6 @@ CompositorAdaptor::CompositorAdaptor(QObject *parent) : QObject(parent) { - if(KWindowSystem::isPlatformX11()) { - setError(ErrorCode::ErrorCodeXSession); - } - m_iface = new QDBusInterface (QStringLiteral("org.kde.KWin"), QStringLiteral("/ColorCorrect"), QStringLiteral("org.kde.kwin.ColorCorrect"), @@ -49,7 +44,7 @@ void CompositorAdaptor::setError(ErrorCode error) { - if (m_error == error || m_error == ErrorCode::ErrorCodeXSession) { + if (m_error == error) { return; } m_error = error; @@ -60,9 +55,6 @@ case ErrorCode::ErrorCodeBackendNoSupport: m_errorText = i18nc("Critical error message", "Rendering backend doesn't support Color Correction."); break; - case ErrorCode::ErrorCodeXSession: - m_errorText = i18nc("Critical error message", "You're currently using the X Windowing System. This functionality is Wayland exclusive."); - break; default: m_errorText = ""; }