Commit 85be7c2b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove AbstractClient plumbing casts in ScreencastManager

parent e5fe1ebd
......@@ -48,9 +48,7 @@ public:
: ScreenCastStream(new WindowScreenCastSource(toplevel), parent)
, m_toplevel(toplevel)
{
if (AbstractClient *client = static_cast<AbstractClient *>(toplevel->isClient() ? toplevel : nullptr)) {
setObjectName(client->desktopFileName());
}
setObjectName(toplevel->desktopFileName());
connect(this, &ScreenCastStream::startStreaming, this, &WindowStream::startFeeding);
connect(this, &ScreenCastStream::stopStreaming, this, &WindowStream::stopFeeding);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment