Fix Platform::createDecorationRenderer

Was missing a return and due to that the decoration renderer never
got added to the Decoration.

Thanks to code coverage reports on build.kde.org! They showed me that
something must have went wrong with the commit series.
This commit is contained in:
Martin Flöser 2017-09-01 20:58:30 +02:00
parent 3e0e26204f
commit 6168638cf4

View file

@ -483,7 +483,7 @@ OutlineVisual *Platform::createOutline(Outline *outline)
Decoration::Renderer *Platform::createDecorationRenderer(Decoration::DecoratedClientImpl *client)
{
if (Compositor::self()->hasScene()) {
Compositor::self()->scene()->createDecorationRenderer(client);
return Compositor::self()->scene()->createDecorationRenderer(client);
}
return nullptr;
}