Commit 3a6508dd authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[windowsystem] Fix compilation with no-deprecated build of KWindowSystem

Summary:
This change ensures that kwayland-integration can be built with a
version of KWS that doesn't have any deprecated stuff. I assume that no
distro ships such builds of KWS and it's only a developer thing.

I didn't backport KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE macro because
the next release of Plasma (5.18) depends on KF 5.66.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26643
parent e3904762
......@@ -275,9 +275,9 @@ void WindowEffects::enableBackgroundContrast(QWindow *window, bool enable, qreal
}
}
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
void WindowEffects::markAsDashboard(WId window)
{
Q_UNUSED(window)
}
#endif
......@@ -62,7 +62,9 @@ public:
void enableBlurBehind(QWindow *window, bool enable, const QRegion &region);
void enableBackgroundContrast(WId winId, bool enable = true, qreal contrast = 1, qreal intensity = 1, qreal saturation = 1, const QRegion &region = QRegion()) override;
void enableBackgroundContrast(QWindow *window, bool enable = true, qreal contrast = 1, qreal intensity = 1, qreal saturation = 1, const QRegion &region = QRegion());
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
void markAsDashboard(WId window) override;
#endif
private:
QHash<QWindow *, QMetaObject::Connection> m_windowWatchers;
QHash<QWindow *, QRegion> m_blurRegions;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment