wayland: Update decoration on surface commit

This ensures that we process the destruction of the xdg decoration on
the next surface commit.

BUG: 431824
This commit is contained in:
Vlad Zahorodnii 2021-01-24 18:54:02 +02:00 committed by Aleix Pol Gonzalez
parent ed5dfa1691
commit 3753d4d18d

View file

@ -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.