Remove Platform::supportsOutputChanges()

If the platform does not support configuring outputs, applying a config
must fail. However, almost all output backends support output
configuring except, perhaps, the x11 backend, but that case doesn't
matter.
This commit is contained in:
Vlad Zahorodnii 2022-08-16 13:39:18 +03:00
parent 02f9978489
commit f2e594358c
4 changed files with 0 additions and 12 deletions

View file

@ -85,7 +85,6 @@ DrmBackend::DrmBackend(Session *session, QObject *parent)
{ {
setSupportsPointerWarping(true); setSupportsPointerWarping(true);
setSupportsGammaControl(true); setSupportsGammaControl(true);
supportsOutputChanges();
} }
DrmBackend::~DrmBackend() = default; DrmBackend::~DrmBackend() = default;

View file

@ -31,7 +31,6 @@ VirtualBackend::VirtualBackend(QObject *parent)
} }
} }
supportsOutputChanges();
setSupportsPointerWarping(true); setSupportsPointerWarping(true);
setSupportsGammaControl(true); setSupportsGammaControl(true);
} }

View file

@ -576,7 +576,6 @@ WaylandBackend::WaylandBackend(QObject *parent)
, m_connectionThreadObject(new ConnectionThread(nullptr)) , m_connectionThreadObject(new ConnectionThread(nullptr))
, m_connectionThread(nullptr) , m_connectionThread(nullptr)
{ {
supportsOutputChanges();
connect(this, &WaylandBackend::connectionFailed, qApp, &QCoreApplication::quit); connect(this, &WaylandBackend::connectionFailed, qApp, &QCoreApplication::quit);
#if HAVE_WAYLAND_EGL #if HAVE_WAYLAND_EGL

View file

@ -391,14 +391,6 @@ protected:
m_supportsGammaControl = set; m_supportsGammaControl = set;
} }
/**
* Whether the backend is supposed to change the configuration of outputs.
*/
void supportsOutputChanges()
{
m_supportsOutputChanges = true;
}
private: private:
bool m_ready = false; bool m_ready = false;
QSize m_initialWindowSize; QSize m_initialWindowSize;
@ -409,7 +401,6 @@ private:
EGLDisplay m_eglDisplay; EGLDisplay m_eglDisplay;
EGLContext m_globalShareContext = EGL_NO_CONTEXT; EGLContext m_globalShareContext = EGL_NO_CONTEXT;
bool m_supportsGammaControl = false; bool m_supportsGammaControl = false;
bool m_supportsOutputChanges = false;
CompositingType m_selectedCompositor = NoCompositing; CompositingType m_selectedCompositor = NoCompositing;
Output *m_primaryOutput = nullptr; Output *m_primaryOutput = nullptr;
}; };