From 59404b3044b6a25744a50e1543045c44abd487c4 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 6 Oct 2020 14:12:20 +0200 Subject: [PATCH] Add property for DecoratedClient's windowId A decoration may want to use this information for adjustments for specific windows. --- src/decoratedclient.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/decoratedclient.h b/src/decoratedclient.h index 1b6aa84..61a88cf 100644 --- a/src/decoratedclient.h +++ b/src/decoratedclient.h @@ -169,7 +169,13 @@ class KDECORATIONS2_EXPORT DecoratedClient : public QObject */ Q_PROPERTY(bool applicationMenuActive READ isApplicationMenuActive NOTIFY applicationMenuActiveChanged) - // TODO: properties for windowId and decorationId? + /** + * The window id of the DecoratedClient + * @since 5.21 + */ + Q_PROPERTY(qulonglong windowId READ windowId CONSTANT) + + // TODO: property for decorationId? public: DecoratedClient() = delete; -- GitLab