aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Flöser <[email protected]>2017-05-08 16:46:16 +0200
committerMartin Flöser <[email protected]>2017-05-08 16:46:16 +0200
commita2d19c6b9deb1099bd47e09949d4f9adff2c3c42 (patch)
tree7e02fbb54262fffc7c34ed42fe4f7d6acedcd301
parent802b0de36a039b587a02d0445f05db322f484ab0 (diff)
Revert "Set pid on the PlasmaWindow based on the client connection."
-rw-r--r--abstract_client.cpp1
-rw-r--r--shell_client.cpp5
-rw-r--r--shell_client.h9
-rw-r--r--toplevel.h2
4 files changed, 1 insertions, 16 deletions
diff --git a/abstract_client.cpp b/abstract_client.cpp
index b00d5c4..df3e844 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 896dc49..294f63a 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 eba74cf..24a46fa 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 f7dbe5c..3737c12 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