Revert "Set pid on the PlasmaWindow based on the client connection."

This reverts commit 262fb00b51.

CCMAIL: hein@kde.org
This commit is contained in:
Martin Flöser 2017-05-08 16:46:16 +02:00
parent 802b0de36a
commit a2d19c6b9d
4 changed files with 1 additions and 16 deletions

View file

@ -704,7 +704,6 @@ void AbstractClient::setupWindowManagementInterface()
};
updateAppId();
w->setSkipTaskbar(skipTaskbar());
w->setPid(pid());
w->setShadeable(isShadeable());
w->setShaded(isShade());
w->setResizable(isResizable());

View file

@ -981,11 +981,6 @@ 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;

View file

@ -108,15 +108,6 @@ 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;

View file

@ -289,7 +289,7 @@ public:
QByteArray wmClientMachine(bool use_localhost) const;
const ClientMachine *clientMachine() const;
Window wmClientLeader() const;
virtual pid_t pid() const;
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