Skip to content
Snippets Groups Projects
Commit d7442a31 authored by Johan Klokkhammer Helsing's avatar Johan Klokkhammer Helsing Committed by Johan Helsing
Browse files

Don't create new xdg surfaces in updateTransientParent


Change-Id: I1644a75269fec40644f02eeb275d9e6b98995c0e
Reviewed-by: default avatarPaul Olav Tvete <paul.tvete@qt.io>
parent 18eedea1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment