From 3753d4d18d5afcf0d1e9df9095a2ab25796af7e5 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 24 Jan 2021 18:54:02 +0200 Subject: [PATCH] wayland: Update decoration on surface commit This ensures that we process the destruction of the xdg decoration on the next surface commit. BUG: 431824 --- xdgshellclient.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp index c594aad88b..b6776ec8de 100644 --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -755,6 +755,7 @@ void XdgToplevelClient::handleRoleCommit() if (configureEvent) { handleStatesAcknowledged(configureEvent->states); } + updateDecoration(false, false); } void XdgToplevelClient::doMinimize() @@ -1303,11 +1304,6 @@ void XdgToplevelClient::installXdgDecoration(XdgToplevelDecorationV1Interface *d { m_xdgDecoration = decoration; - connect(m_xdgDecoration, &XdgToplevelDecorationV1Interface::destroyed, this, [this] { - if (!isZombie() && m_isInitialized) { - updateDecoration(/* check_workspace_pos */ true); - } - }); connect(m_xdgDecoration, &XdgToplevelDecorationV1Interface::preferredModeChanged, this, [this] { if (m_isInitialized) { // force is true as we must send a new configure response.