InputRedirection::updatePointerDecoration operates on AbstractClient for deco

As decoration and decoratedClient is now in AbstractClient we don't need
to keep it as Client specific code.
This commit is contained in:
Martin Gräßlin 2015-12-03 17:39:06 +01:00
parent 7fc15b48fb
commit e61ad65f10

View file

@ -563,7 +563,7 @@ void InputRedirection::updatePointerWindow()
void InputRedirection::updatePointerDecoration(Toplevel *t)
{
const auto oldDeco = m_pointerDecoration;
if (Client *c = dynamic_cast<Client*>(t)) {
if (AbstractClient *c = dynamic_cast<AbstractClient*>(t)) {
// check whether it's on a Decoration
if (c->decoratedClient()) {
const QRect clientRect = QRect(c->clientPos(), c->clientSize()).translated(c->pos());