From ecd00a565a99c5b62531ee2dd4099bfa031c4fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sun, 15 Oct 2017 10:07:32 +0200 Subject: [PATCH] Don't position a Dialog if it's of type OSD Summary: The OSDs are positioned by the Wayland compositor. This fixed the issue found in D8268. Reviewers: #frameworks, #plasma Subscribers: plasma-devel Tags: #plasma, #frameworks Differential Revision: https://phabricator.kde.org/D8304 --- src/plasmaquick/dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 6ec55b236..6d9e95092 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -307,7 +307,7 @@ void DialogPrivate::updateVisibility(bool visible) #if 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) { + if (shellSurface && type != Dialog::OnScreenDisplay) { shellSurface->setPosition(q->position()); } #endif