From e3ffa8d8fe9c04bef6c4bf1a81055830a48ed04a Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Sun, 25 Jun 2017 10:25:17 +0530 Subject: [PATCH] Fix the build without wayland/kwayland This fixes the build of plasma-framework on KDE CI. Without this it will error out as, dialog.cpp(309): error C2065: 'shellSurface': undeclared identifier dialog.cpp(310): error C2065: 'shellSurface': undeclared identifier dialog.cpp(310): error C2227: left of '->setPosition' must point to class/struct/union/generic type Signed-off-by: Bhushan Shah --- src/plasmaquick/dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 136eadf01..9dd036885 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -304,11 +304,13 @@ void DialogPrivate::updateVisibility(bool visible) updateLayoutParameters(); } +#ifdef HAVE_KWAYLAND //if is a wayland window that was hidden, we need //to set its position again as there won't be any move event to sync QWindow::position and shellsurface::position if (shellSurface) { shellSurface->setPosition(q->position()); } +#endif } }