From 6e0012a3c990d6c1bed53e2c674a60c8fb685ee1 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 6 Dec 2022 23:14:44 +0100 Subject: [PATCH] Adapt to deprecated KWindowSystem API --- src/plugins/windowsystem/windowsystem.cpp | 4 ++++ src/plugins/windowsystem/windowsystem.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/plugins/windowsystem/windowsystem.cpp b/src/plugins/windowsystem/windowsystem.cpp index 33fb6f8e68..9ffbbc04b6 100644 --- a/src/plugins/windowsystem/windowsystem.cpp +++ b/src/plugins/windowsystem/windowsystem.cpp @@ -73,9 +73,11 @@ int WindowSystem::currentDesktop() return 0; } +#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101) void WindowSystem::demandAttention(WId win, bool set) { } +#endif QString WindowSystem::desktopName(int desktop) { @@ -158,9 +160,11 @@ void WindowSystem::setStrut(WId win, int left, int right, int top, int bottom) { } +#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101) void WindowSystem::setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) { } +#endif void WindowSystem::setOnActivities(WId win, const QStringList &activities) { diff --git a/src/plugins/windowsystem/windowsystem.h b/src/plugins/windowsystem/windowsystem.h index 67234a495d..401968c5fc 100644 --- a/src/plugins/windowsystem/windowsystem.h +++ b/src/plugins/windowsystem/windowsystem.h @@ -22,7 +22,9 @@ public: WId activeWindow() override; void activateWindow(WId win, long time) override; void forceActiveWindow(WId win, long time) override; +#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101) void demandAttention(WId win, bool set) override; +#endif bool compositingActive() override; int currentDesktop() override; int numberOfDesktops() override; @@ -35,7 +37,9 @@ public: WId groupLeader(WId window) override; #endif QPixmap icon(WId win, int width, int height, bool scale, int flags) override; +#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101) void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) override; +#endif void setType(WId win, NET::WindowType windowType) override; void setState(WId win, NET::States state) override; void clearState(WId win, NET::States state) override;