Commit 036ad759 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Vlad Zahorodnii
Browse files

[wayland] Adapt to SurfaceInterface changes

parent cae98284
......@@ -248,7 +248,7 @@ void EglStreamBackend::attachStreamConsumer(KWaylandServer::SurfaceInterface *su
m_streamTextures.insert(surface, newSt);
texture = newSt.texture;
connect(surface, &KWaylandServer::Resource::unbound, this,
connect(surface, &KWaylandServer::SurfaceInterface::destroyed, this,
[surface, this]() {
const StreamTexture &st = m_streamTextures.take(surface);
pEglDestroyStreamKHR(eglDisplay(), st.stream);
......
......@@ -305,7 +305,6 @@ bool WaylandServer::init(const QByteArray &socketName, InitializationFlags flags
return false;
}
m_compositor = m_display->createCompositor(m_display);
m_compositor->create();
connect(m_compositor, &CompositorInterface::surfaceCreated, this,
[this] (SurfaceInterface *surface) {
// check whether we have a Toplevel with the Surface's id
......
......@@ -74,8 +74,6 @@ XdgSurfaceClient::XdgSurfaceClient(XdgSurfaceInterface *shellSurface)
connect(shellSurface->surface(), &SurfaceInterface::mapped,
this, &XdgSurfaceClient::setReadyForPainting);
#endif
connect(shellSurface->surface(), &SurfaceInterface::unbound,
this, &XdgSurfaceClient::destroyClient);
connect(shellSurface->surface(), &SurfaceInterface::destroyed,
this, &XdgSurfaceClient::destroyClient);
......
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