From 6c03c15c08a4b585bc3f320865858e4c2832f70b Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Mon, 5 Jun 2017 10:02:44 -0400 Subject: [PATCH] src/plasmaquick/dialog.cpp - fix build without kwayland --- src/plasmaquick/dialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index c4c1a9a6f..03995eb8a 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -1163,11 +1163,13 @@ bool Dialog::event(QEvent *event) * and tear it down when the window gets hidden * see https://phabricator.kde.org/T6064 */ +#if HAVE_KWAYLAND if (!d->shellSurface) { KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); d->setupWaylandIntegration(); d->updateVisibility(true); } +#endif #if (QT_VERSION > QT_VERSION_CHECK(5, 5, 0)) } else if (event->type() == QEvent::PlatformSurface) { const QPlatformSurfaceEvent *pSEvent = static_cast(event); @@ -1186,9 +1188,9 @@ bool Dialog::event(QEvent *event) #endif } else if (event->type() == QEvent::Move) { - QMoveEvent *me = static_cast(event); #if HAVE_KWAYLAND if (d->shellSurface) { + QMoveEvent *me = static_cast(event); d->shellSurface->setPosition(me->pos()); } #endif @@ -1396,4 +1398,3 @@ void Dialog::setBackgroundHints(Dialog::BackgroundHints hints) } #include "moc_dialog.cpp" -