Commit 20766d91 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Update decoration on surface commit

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

BUG: 431824


(cherry picked from commit 3753d4d1)
parent ee0b4474
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment