[wayland] Keep transient state directly in ShellClient
So far we delegated to ShellSurfaceInterface, but it's possible that we call into isTransient when the ShellSurfaceInterface is already destroyed.
This commit is contained in:
parent
b35c3e8501
commit
3cb8438399
2 changed files with 3 additions and 1 deletions
|
@ -730,7 +730,7 @@ void ShellClient::updateIcon()
|
|||
|
||||
bool ShellClient::isTransient() const
|
||||
{
|
||||
return m_shellSurface->isTransient();
|
||||
return m_transient;
|
||||
}
|
||||
|
||||
void ShellClient::setTransient()
|
||||
|
@ -746,6 +746,7 @@ void ShellClient::setTransient()
|
|||
t->addTransient(this);
|
||||
}
|
||||
}
|
||||
m_transient = !s.isNull();
|
||||
}
|
||||
|
||||
bool ShellClient::hasTransientPlacementHint() const
|
||||
|
|
|
@ -151,6 +151,7 @@ private:
|
|||
QPointer<KWayland::Server::PlasmaShellSurfaceInterface> m_plasmaShellSurface;
|
||||
QPointer<KWayland::Server::QtExtendedSurfaceInterface> m_qtExtendedSurface;
|
||||
bool m_fullScreen = false;
|
||||
bool m_transient = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue