[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).
icc-effect-5.14.5
Martin Gräßlin 2015-05-21 10:31:19 +02:00
parent 4ed4d4dab4
commit 23b19b4efe
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -90,6 +90,7 @@ public:
quint32 windowId() const {
return m_windowId;
}
bool isInternal() const;
protected:
void addDamage(const QRegion &damage) override;