Don't create new xdg surfaces in updateTransientParent

Change-Id: I1644a75269fec40644f02eeb275d9e6b98995c0e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Johan Klokkhammer Helsing 2016-11-07 13:26:04 +01:00 committed by Johan Helsing
parent c1444d272e
commit 7afb887521

View File

@ -132,7 +132,9 @@ void QWaylandXdgSurface::updateTransientParent(QWindow *parent)
QWaylandWindow *parent_wayland_window = static_cast<QWaylandWindow *>(parent->handle());
if (!parent_wayland_window)
return;
set_parent(m_shell->get_xdg_surface(parent_wayland_window->object()));
auto parentXdgSurface = qobject_cast<QWaylandXdgSurface *>(parent_wayland_window->shellSurface());
Q_ASSERT(parentXdgSurface);
set_parent(parentXdgSurface->object());
}
void QWaylandXdgSurface::setTitle(const QString & title)