From 0ef4f6f239c8ad590eeb1a0a6a7c8ba254305fb1 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Wed, 8 Dec 2021 11:53:00 +0100 Subject: Handle the transientParent of a window having another kind of surface Useful for the current work of allowing multiple shells in one process. Change-Id: I68424687df9069fd4339f2764649db1df70a6c9a Reviewed-by: David Edmundson --- src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp index ad533606..547631fd 100644 --- a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp +++ b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp @@ -258,7 +258,7 @@ QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *shell, ::xdg_surface *s } else { setToplevel(); if (transientParent) { - auto parentXdgSurface = static_cast(transientParent->shellSurface()); + auto parentXdgSurface = qobject_cast(transientParent->shellSurface()); if (parentXdgSurface) m_toplevel->set_parent(parentXdgSurface->m_toplevel->object()); } -- cgit v1.2.1