Commit e7e79124 authored by Eike Hein's avatar Eike Hein Committed by Roman Gilg

Set pid on the ClientConnection backing the PlasmaWindow surface.

Summary: Depends on D5747.

Reviewers: #plasma, sebas, graesslin

Reviewed By: #plasma, graesslin

Subscribers: kwin, plasma-devel, #kwin

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D5756
parent d8ec2e04
......@@ -704,6 +704,7 @@ void AbstractClient::setupWindowManagementInterface()
};
updateAppId();
w->setSkipTaskbar(skipTaskbar());
w->setPid(pid());
w->setShadeable(isShadeable());
w->setShaded(isShade());
w->setResizable(isResizable());
......
......@@ -980,6 +980,11 @@ void ShellClient::updateInternalWindowGeometry()
m_internalWindow->geometry().size() + QSize(borderLeft() + borderRight(), borderTop() + borderBottom())));
}
pid_t ShellClient::pid() const
{
return surface()->client()->processId();
}
bool ShellClient::isInternal() const
{
return m_internal;
......
......@@ -108,6 +108,15 @@ public:
quint32 windowId() const override {
return m_windowId;
}
/**
* The process for this client.
* Note that processes started by kwin will share its process id.
* @since 5.11
* @returns the process if for this client.
**/
pid_t pid() const override;
bool isInternal() const;
bool isLockScreen() const override;
bool isInputMethod() const override;
......
......@@ -295,7 +295,7 @@ public:
QByteArray wmClientMachine(bool use_localhost) const;
const ClientMachine *clientMachine() const;
Window wmClientLeader() const;
pid_t pid() const;
virtual pid_t pid() const;
static bool resourceMatch(const Toplevel* c1, const Toplevel* c2);
bool readyForPainting() const; // true if the window has been already painted its contents
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment