Commit 2200f4de authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

windowsystem: Fix compilation with no deprecated build of KWindowSystem

Highlight window and present windows API has been deprecated in 5.82.
parent 9e1de452
......@@ -75,23 +75,29 @@ QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids)
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void WindowEffects::presentWindows(WId controller, const QList<WId> &ids)
{
Q_UNUSED(controller)
Q_UNUSED(ids)
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void WindowEffects::presentWindows(WId controller, int desktop)
{
Q_UNUSED(controller)
Q_UNUSED(desktop)
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void WindowEffects::highlightWindows(WId controller, const QList<WId> &ids)
{
Q_UNUSED(controller)
Q_UNUSED(ids)
}
#endif
void WindowEffects::enableBlurBehind(WId window, bool enable, const QRegion &region)
{
......
......@@ -21,9 +21,11 @@ public:
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
QList<QSize> windowSizes(const QList<WId> &ids) override;
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void presentWindows(WId controller, const QList<WId> &ids) override;
void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override;
void highlightWindows(WId controller, const QList<WId> &ids) override;
#endif
void enableBlurBehind(WId window, bool enable = true, const QRegion &region = QRegion()) override;
void enableBackgroundContrast(WId window, bool enable = true, qreal contrast = 1, qreal intensity = 1, qreal saturation = 1, const QRegion &region = QRegion()) override;
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 67)
......
Supports Markdown
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