From 5f3544bac871261cf20329e5e65939402e55d712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 24 Aug 2016 15:43:02 +0200 Subject: [PATCH] [wayland] Destroy ShellClient already when Surface gets unbound --- shell_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shell_client.cpp b/shell_client.cpp index 5a8e5467b4..9c9b1ec774 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -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);