make it actually build without kwayland
Change-Id: I864c771a2db7f3cdfb124729c5ae8739d2eec310
This commit is contained in:
parent
9e54853ac8
commit
2b68e07658
@ -1136,9 +1136,11 @@ bool Dialog::event(QEvent *event)
|
|||||||
d->updateVisibility(false);
|
d->updateVisibility(false);
|
||||||
} else if (event->type() == QEvent::Move) {
|
} else if (event->type() == QEvent::Move) {
|
||||||
QMoveEvent *me = static_cast<QMoveEvent *>(event);
|
QMoveEvent *me = static_cast<QMoveEvent *>(event);
|
||||||
|
#if HAVE_KWAYLAND
|
||||||
if (d->shellSurface) {
|
if (d->shellSurface) {
|
||||||
d->shellSurface->setPosition(me->pos());
|
d->shellSurface->setPosition(me->pos());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Fitt's law: if the containment has margins, and the mouse cursor clicked
|
/*Fitt's law: if the containment has margins, and the mouse cursor clicked
|
||||||
|
@ -702,6 +702,8 @@ KWayland::Client::PlasmaShell *DialogShadows::waylandPlasmaShellInterface() cons
|
|||||||
{
|
{
|
||||||
#if HAVE_KWAYLAND
|
#if HAVE_KWAYLAND
|
||||||
return d->m_wayland.plasmaShell;
|
return d->m_wayland.plasmaShell;
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user