From a2d19c6b9deb1099bd47e09949d4f9adff2c3c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Mon, 8 May 2017 16:46:16 +0200 Subject: [PATCH] Revert "Set pid on the PlasmaWindow based on the client connection." This reverts commit 262fb00b513fc750399d9a9118c1468a57c0fd97. CCMAIL: hein@kde.org --- abstract_client.cpp | 1 - shell_client.cpp | 5 ----- shell_client.h | 9 --------- toplevel.h | 2 +- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/abstract_client.cpp b/abstract_client.cpp index b00d5c40cb..df3e84497e 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -704,7 +704,6 @@ void AbstractClient::setupWindowManagementInterface() }; updateAppId(); w->setSkipTaskbar(skipTaskbar()); - w->setPid(pid()); w->setShadeable(isShadeable()); w->setShaded(isShade()); w->setResizable(isResizable()); diff --git a/shell_client.cpp b/shell_client.cpp index 896dc49ae1..294f63aa11 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -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; diff --git a/shell_client.h b/shell_client.h index eba74cfb7c..24a46faf49 100644 --- a/shell_client.h +++ b/shell_client.h @@ -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; diff --git a/toplevel.h b/toplevel.h index f7dbe5c74d..3737c12731 100644 --- a/toplevel.h +++ b/toplevel.h @@ -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