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
This commit is contained in:
Martin Flöser 2017-10-15 10:07:32 +02:00
parent a678093b1d
commit ecd00a565a

View File

@ -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