[wayland] Destroy ShellClient already when Surface gets unbound

This commit is contained in:
Martin Gräßlin 2016-08-24 15:43:02 +02:00
parent 2feea7837a
commit 5f3544bac8

View file

@ -195,6 +195,7 @@ void ShellClient::init()
}
);
connect(s, &SurfaceInterface::unmapped, this, &ShellClient::unmap);
connect(s, &SurfaceInterface::unbound, this, &ShellClient::destroyClient);
connect(s, &SurfaceInterface::destroyed, this, &ShellClient::destroyClient);
if (m_shellSurface) {
initSurface(m_shellSurface);