wayland: Fix handling of unminimization for not fully initialized xdg-toplevels
If setMinimized(false) is called for a not fully initialized XdgToplevelWindow, we don't want to emit the windowShown signal. BUG: 479234
This commit is contained in:
parent
1c15a6dd88
commit
c59f385996
1 changed files with 6 additions and 4 deletions
|
@ -708,10 +708,12 @@ void XdgToplevelWindow::handleRoleCommit()
|
|||
|
||||
void XdgToplevelWindow::doMinimize()
|
||||
{
|
||||
if (isMinimized()) {
|
||||
workspace()->windowHidden(this);
|
||||
} else {
|
||||
Q_EMIT windowShown(this);
|
||||
if (m_isInitialized) {
|
||||
if (isMinimized()) {
|
||||
workspace()->windowHidden(this);
|
||||
} else {
|
||||
Q_EMIT windowShown(this);
|
||||
}
|
||||
}
|
||||
workspace()->updateMinimizedOfTransients(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue