[wayland] Implement caption in ShellClient

Just delegates to the title of the ShellSurfaceInterface.
icc-effect-5.14.5
Martin Gräßlin 2015-05-20 14:40:32 +02:00
parent 846fd58d14
commit e97576aab7
1 changed files with 2 additions and 1 deletions

View File

@ -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)