Comment Actions
In general, yes.
However, we need to provide scripts some way to differentiate between X11 clients and Wayland clients. There's no concept of managed clients on Wayland, so checking managed property is a bad idea if it's a wayland client.
Perhaps it's worth adding protocol property, e.g.
class Toplevel : public QObject { Q_OBJECT Q_PROPERTY(Protocol protocol READ protocol CONSTANT) public: /** * This enum blah blah. */ enum class Protocol { Internal, ///< The Toplevel represents an internal client. Wayland, ///< The Toplevel represents a Wayland client. X11, ///< The Topelvel represents an X11 client. }; Q_ENUM(Protocol); // lots of code virtual Protocol protocol() const = 0; // lots of code };