[wayland] Add a bool ShellClient::isInternal
Helper method to identify whether a ShellClient is for one of KWin's internal connections (e.g. a QWindow).
This commit is contained in:
parent
4ed4d4dab4
commit
23b19b4efe
2 changed files with 7 additions and 0 deletions
|
@ -377,4 +377,10 @@ void ShellClient::updateInternalWindowGeometry()
|
|||
setGeometry(m_internalWindow->geometry());
|
||||
}
|
||||
|
||||
bool ShellClient::isInternal() const
|
||||
{
|
||||
return m_shellSurface->client() == waylandServer()->internalConnection() ||
|
||||
m_shellSurface->client() == waylandServer()->qtConnection();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ public:
|
|||
quint32 windowId() const {
|
||||
return m_windowId;
|
||||
}
|
||||
bool isInternal() const;
|
||||
|
||||
protected:
|
||||
void addDamage(const QRegion &damage) override;
|
||||
|
|
Loading…
Reference in a new issue