diff --git a/input.cpp b/input.cpp index 9092b7b5dd..8a9d4e066b 100644 --- a/input.cpp +++ b/input.cpp @@ -563,7 +563,7 @@ void InputRedirection::updatePointerWindow() void InputRedirection::updatePointerDecoration(Toplevel *t) { const auto oldDeco = m_pointerDecoration; - if (Client *c = dynamic_cast(t)) { + if (AbstractClient *c = dynamic_cast(t)) { // check whether it's on a Decoration if (c->decoratedClient()) { const QRect clientRect = QRect(c->clientPos(), c->clientSize()).translated(c->pos());