Commit 9ffc8bf7 authored by Laurent Montel's avatar Laurent Montel 😁

Now it depends against new version. Old code can be removed

parent fe41af9e
......@@ -67,13 +67,6 @@ void WindowEffects::slideWindow(WId id, KWindowEffects::SlideFromLocation locati
w->setProperty("kwin_slide_offset", offset);
}
#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 61, 0)
void WindowEffects::slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location)
{
slideWindow(widget->winId(), location, 0);
}
#endif
QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids)
{
Q_UNUSED(ids)
......
......@@ -18,9 +18,6 @@ public:
bool isEffectAvailable(KWindowEffects::Effect effect) override;
void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) override;
#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 61, 0)
void slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location) override;
#endif
QList<QSize> windowSizes(const QList<WId> &ids) override;
void presentWindows(WId controller, const QList<WId> &ids) override;
void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override;
......
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