Another API fix

This commit is contained in:
wheaney 2026-02-12 10:55:22 -08:00
parent 9aee282375
commit d08f30f2dc
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

@ -5,6 +5,4 @@ namespace KWin
KWIN_EFFECT_FACTORY(BreezyDesktopEffect, "metadata.json")
} // namespace KWin
#include "main.moc"
} // namespace KWin