[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:
Martin Gräßlin 2015-10-08 11:04:06 +02:00
parent b35c3e8501
commit 3cb8438399
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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;
};
}