make it actually build without kwayland

Change-Id: I864c771a2db7f3cdfb124729c5ae8739d2eec310
This commit is contained in:
Marco Martin 2016-10-17 14:25:50 +02:00
parent 9e54853ac8
commit 2b68e07658
2 changed files with 4 additions and 0 deletions

View File

@ -1136,9 +1136,11 @@ bool Dialog::event(QEvent *event)
d->updateVisibility(false);
} else if (event->type() == QEvent::Move) {
QMoveEvent *me = static_cast<QMoveEvent *>(event);
#if HAVE_KWAYLAND
if (d->shellSurface) {
d->shellSurface->setPosition(me->pos());
}
#endif
}
/*Fitt's law: if the containment has margins, and the mouse cursor clicked

View File

@ -702,6 +702,8 @@ KWayland::Client::PlasmaShell *DialogShadows::waylandPlasmaShellInterface() cons
{
#if HAVE_KWAYLAND
return d->m_wayland.plasmaShell;
#else
return nullptr;
#endif
}