Commit 7f1abd5d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Allow testing transformations on windowed KWin

parent 27172528
......@@ -78,6 +78,7 @@ bool EglWaylandOutput::init(EglWaylandBackend *backend)
m_eglSurface = eglSurface;
connect(m_waylandOutput, &WaylandOutput::sizeChanged, this, &EglWaylandOutput::updateSize);
connect(m_waylandOutput, &WaylandOutput::modeChanged, this, &EglWaylandOutput::updateMode);
return true;
}
......@@ -87,6 +88,11 @@ void EglWaylandOutput::updateSize(const QSize &size)
wl_egl_window_resize(m_overlay, size.width(), size.height(), 0, 0);
}
void EglWaylandOutput::updateMode()
{
updateSize(m_waylandOutput->pixelSize());
}
EglWaylandBackend::EglWaylandBackend(WaylandBackend *b)
: AbstractEglBackend()
, m_backend(b)
......
......@@ -46,6 +46,7 @@ public:
bool init(EglWaylandBackend *backend);
void updateSize(const QSize &size);
void updateMode();
private:
WaylandOutput *m_waylandOutput;
......
......@@ -452,6 +452,7 @@ WaylandBackend::WaylandBackend(QObject *parent)
, m_connectionThread(nullptr)
{
connect(this, &WaylandBackend::connectionFailed, this, &WaylandBackend::initFailed);
supportsOutputChanges();
}
WaylandBackend::~WaylandBackend()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment