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) {
|
bool BreezyDesktopEffect::removeVirtualDisplay(const QString &id) {
|
||||||
auto it = m_virtualDisplays.find(id);
|
auto it = m_virtualDisplays.find(id);
|
||||||
if (it != m_virtualDisplays.end()) {
|
if (it != m_virtualDisplays.end()) {
|
||||||
ScreenOutput *output = it->output;
|
VirtualOutputHandle *output = it->output;
|
||||||
if (output) {
|
if (output) {
|
||||||
KWin::kwinApp()->outputBackend()->removeVirtualOutput(output);
|
KWin::kwinApp()->outputBackend()->removeVirtualOutput(output);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,16 @@ class QTimer;
|
||||||
|
|
||||||
namespace KWin
|
namespace KWin
|
||||||
{
|
{
|
||||||
|
class BackendOutput;
|
||||||
class LogicalOutput;
|
class LogicalOutput;
|
||||||
class Output;
|
class Output;
|
||||||
|
|
||||||
#if defined(KWIN_VERSION_ENCODED) && KWIN_VERSION_ENCODED >= 60590
|
#if defined(KWIN_VERSION_ENCODED) && KWIN_VERSION_ENCODED >= 60590
|
||||||
using ScreenOutput = LogicalOutput;
|
using ScreenOutput = LogicalOutput;
|
||||||
|
using VirtualOutputHandle = BackendOutput;
|
||||||
#else
|
#else
|
||||||
using ScreenOutput = Output;
|
using ScreenOutput = Output;
|
||||||
|
using VirtualOutputHandle = ScreenOutput;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class BreezyDesktopEffect : public QuickSceneEffect
|
class BreezyDesktopEffect : public QuickSceneEffect
|
||||||
|
|
@ -230,7 +233,7 @@ namespace KWin
|
||||||
bool m_effectOnScreenGeometryValid = false;
|
bool m_effectOnScreenGeometryValid = false;
|
||||||
|
|
||||||
struct VirtualOutputInfo {
|
struct VirtualOutputInfo {
|
||||||
ScreenOutput *output = nullptr;
|
VirtualOutputHandle *output = nullptr;
|
||||||
QString id;
|
QString id;
|
||||||
QSize size;
|
QSize size;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,4 @@ namespace KWin
|
||||||
|
|
||||||
KWIN_EFFECT_FACTORY(BreezyDesktopEffect, "metadata.json")
|
KWIN_EFFECT_FACTORY(BreezyDesktopEffect, "metadata.json")
|
||||||
|
|
||||||
} // namespace KWin
|
} // namespace KWin
|
||||||
|
|
||||||
#include "main.moc"
|
|
||||||
Loading…
Reference in New Issue