From e97576aab7c70e3f7d16e536a1fb53ccdee69e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 20 May 2015 14:40:32 +0200 Subject: [PATCH] [wayland] Implement caption in ShellClient Just delegates to the title of the ShellSurfaceInterface. --- shell_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell_client.cpp b/shell_client.cpp index 8cfa08914a..6074e1dcdc 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -64,6 +64,7 @@ ShellClient::ShellClient(ShellSurfaceInterface *surface) ); connect(surface, &ShellSurfaceInterface::destroyed, this, &ShellClient::destroyClient); connect(surface->surface(), &SurfaceInterface::unmapped, this, &ShellClient::destroyClient); + connect(surface, &ShellSurfaceInterface::titleChanged, this, &ShellClient::captionChanged); } ShellClient::~ShellClient() = default; @@ -188,7 +189,7 @@ QString ShellClient::caption(bool full, bool stripped) const { Q_UNUSED(full) Q_UNUSED(stripped) - return QString(); + return m_shellSurface->title(); } void ShellClient::checkWorkspacePosition(QRect oldGeometry, int oldDesktop)