From d28fba883977a14ba11a96e430460e596912d171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 4 Dec 2015 12:27:00 +0100 Subject: [PATCH] DecorationShadow operates on AbstractClient --- shadow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shadow.cpp b/shadow.cpp index 99f89bfd65..65b4080914 100644 --- a/shadow.cpp +++ b/shadow.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . #include "shadow.h" // kwin #include "atoms.h" -#include "client.h" +#include "abstract_client.h" #include "composite.h" #include "effects.h" #include "toplevel.h" @@ -91,7 +91,7 @@ Shadow *Shadow::createShadowFromX11(Toplevel *toplevel) Shadow *Shadow::crateShadowFromDecoration(Toplevel *toplevel) { - Client *c = qobject_cast(toplevel); + AbstractClient *c = qobject_cast(toplevel); if (!c) { return nullptr; } @@ -341,7 +341,7 @@ bool Shadow::updateShadow() deleteLater(); }; if (m_decorationShadow) { - if (Client *c = qobject_cast(m_topLevel)) { + if (AbstractClient *c = qobject_cast(m_topLevel)) { if (c->decoration()) { if (init(c->decoration())) { if (m_topLevel && m_topLevel->effectWindow())