SceneQPainter::Window::renderWindowDecorations operates on AbstractClient

This commit is contained in:
Martin Gräßlin 2015-12-03 17:42:38 +01:00
parent 401efc28a8
commit f4246ba7e2

View file

@ -356,7 +356,7 @@ void SceneQPainter::Window::renderShadow(QPainter* painter)
void SceneQPainter::Window::renderWindowDecorations(QPainter *painter)
{
// TODO: custom decoration opacity
Client *client = dynamic_cast<Client*>(toplevel);
AbstractClient *client = dynamic_cast<AbstractClient*>(toplevel);
Deleted *deleted = dynamic_cast<Deleted*>(toplevel);
if (!client && !deleted) {
return;