diff --git a/kwin/src/breezydesktopeffect.cpp b/kwin/src/breezydesktopeffect.cpp index 7e9490b..ee99951 100644 --- a/kwin/src/breezydesktopeffect.cpp +++ b/kwin/src/breezydesktopeffect.cpp @@ -416,7 +416,7 @@ QVariantList BreezyDesktopEffect::listVirtualDisplays() const { bool BreezyDesktopEffect::removeVirtualDisplay(const QString &id) { auto it = m_virtualDisplays.find(id); if (it != m_virtualDisplays.end()) { - ScreenOutput *output = it->output; + VirtualOutputHandle *output = it->output; if (output) { KWin::kwinApp()->outputBackend()->removeVirtualOutput(output); } diff --git a/kwin/src/breezydesktopeffect.h b/kwin/src/breezydesktopeffect.h index c66a666..5e1ff4e 100644 --- a/kwin/src/breezydesktopeffect.h +++ b/kwin/src/breezydesktopeffect.h @@ -17,13 +17,16 @@ class QTimer; namespace KWin { + class BackendOutput; class LogicalOutput; class Output; #if defined(KWIN_VERSION_ENCODED) && KWIN_VERSION_ENCODED >= 60590 using ScreenOutput = LogicalOutput; + using VirtualOutputHandle = BackendOutput; #else using ScreenOutput = Output; + using VirtualOutputHandle = ScreenOutput; #endif class BreezyDesktopEffect : public QuickSceneEffect @@ -230,7 +233,7 @@ namespace KWin bool m_effectOnScreenGeometryValid = false; struct VirtualOutputInfo { - ScreenOutput *output = nullptr; + VirtualOutputHandle *output = nullptr; QString id; QSize size; }; diff --git a/kwin/src/main.cpp b/kwin/src/main.cpp index fd243a0..f442949 100644 --- a/kwin/src/main.cpp +++ b/kwin/src/main.cpp @@ -5,6 +5,4 @@ namespace KWin KWIN_EFFECT_FACTORY(BreezyDesktopEffect, "metadata.json") -} // namespace KWin - -#include "main.moc" +} // namespace KWin \ No newline at end of file