Another API fix
This commit is contained in:
parent
9aee282375
commit
d08f30f2dc
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,4 @@ namespace KWin
|
|||
|
||||
KWIN_EFFECT_FACTORY(BreezyDesktopEffect, "metadata.json")
|
||||
|
||||
} // namespace KWin
|
||||
|
||||
#include "main.moc"
|
||||
} // namespace KWin
|
||||
Loading…
Reference in New Issue