[wayland] Adapt to SurfaceInterface changes
This commit is contained in:
parent
cae9828471
commit
036ad759e0
3 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue