Adapt to deprecated KWindowSystem API

This commit is contained in:
Nicolas Fella 2022-12-06 23:14:44 +01:00 committed by Vlad Zahorodnii
parent f191efb39e
commit 6e0012a3c9
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{

View file

@ -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;