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:
parent
ed5dfa1691
commit
3753d4d18d
1 changed files with 1 additions and 5 deletions
|
@ -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…
Reference in a new issue