[wayland] Implement caption in ShellClient

Just delegates to the title of the ShellSurfaceInterface.
This commit is contained in:
Martin Gräßlin 2015-05-20 14:40:32 +02:00
parent 846fd58d14
commit e97576aab7

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)