Commit fb118a93 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Expose the toplevel's pid in the scripting API

This allows scripts to obtain the process behind a window, which can be useful for doing app-specific things in a script.
parent 90b53f41
......@@ -284,6 +284,13 @@ class KWIN_EXPORT Toplevel : public QObject
*/
Q_PROPERTY(QUuid internalId READ internalId CONSTANT)
/**
* The pid of the process owning this window.
*
* @since 5.20
*/
Q_PROPERTY(int pid READ pid CONSTANT)
public:
explicit Toplevel();
virtual xcb_window_t frameId() const;
......
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