wayland: Update decoration on surface commit

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

BUG: 431824
master
Vlad Zahorodnii 4 years ago committed by Aleix Pol Gonzalez
parent ed5dfa1691
commit 3753d4d18d

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

Loading…
Cancel
Save