[wayland] Introduce a memeber variable for checking whether ShellClient is internal
ASAN complained about heap-use-after-freeze in copyToDeleted due to call into isInternal().
This commit is contained in:
parent
8604e03106
commit
ecce036979
2 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,7 @@ namespace KWin
|
|||
ShellClient::ShellClient(ShellSurfaceInterface *surface)
|
||||
: AbstractClient()
|
||||
, m_shellSurface(surface)
|
||||
, m_internal(surface->client() == waylandServer()->internalConnection())
|
||||
{
|
||||
setSurface(surface->surface());
|
||||
findInternalWindow();
|
||||
|
@ -714,7 +715,7 @@ void ShellClient::updateInternalWindowGeometry()
|
|||
|
||||
bool ShellClient::isInternal() const
|
||||
{
|
||||
return m_shellSurface->client() == waylandServer()->internalConnection();
|
||||
return m_internal;
|
||||
}
|
||||
|
||||
bool ShellClient::isLockScreen() const
|
||||
|
|
|
@ -169,6 +169,7 @@ private:
|
|||
bool m_userNoBorder = false;
|
||||
bool m_fullScreen = false;
|
||||
bool m_transient = false;
|
||||
bool m_internal;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue