diff --git a/client.cpp b/client.cpp index 5cdbc56080..c688c0a2dd 100644 --- a/client.cpp +++ b/client.cpp @@ -1869,6 +1869,7 @@ void Client::setCaption(const QString& _s, bool force) client_group->updateItems(); decoration->captionChange(); } + emit captionChanged(); } } diff --git a/client.h b/client.h index e8e8f1a8a3..b8ff3ed86b 100644 --- a/client.h +++ b/client.h @@ -76,8 +76,11 @@ class Client * @see Workspace::activateClient **/ Q_PROPERTY(bool active READ isActive NOTIFY activeChanged) - // TODO: notify signal - Q_PROPERTY(QString caption READ caption) + /** + * The Caption of the Client. Read from WM_NAME property together with a suffix for hostname and shortcut. + * To read only the caption as provided by WM_NAME, use the getter with an additional @c false value. + **/ + Q_PROPERTY(QString caption READ caption NOTIFY captionChanged) // TODO: notify signal Q_PROPERTY(bool closeable READ isCloseable) // TODO: notify signal @@ -523,6 +526,7 @@ signals: void clientStepUserMovedResized(KWin::Client *, const QRect&); void clientFinishUserMovedResized(KWin::Client*); void activeChanged(); + void captionChanged(); private: void exportMappingState(int s); // ICCCM 4.1.3.1, 4.1.4, NETWM 2.5.1