summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorDavid Redondo <qt@david-redondo.de>2021-12-08 11:53:00 +0100
committerDavid Redondo <qt@david-redondo.de>2021-12-09 17:59:25 +0100
commit0ef4f6f239c8ad590eeb1a0a6a7c8ba254305fb1 (patch)
tree4187dccbf1ef791427108c46c8336fa9ad6f5ef8 /src/plugins
parentf13fd0b32c94b8b35c3d7bd702552e012a7e526e (diff)
downloadqtwayland-0ef4f6f239c8ad590eeb1a0a6a7c8ba254305fb1.tar.gz
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 <davidedmundson@kde.org>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp2
1 files changed, 1 insertions, 1 deletions
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<QWaylandXdgSurface *>(transientParent->shellSurface());
+ auto parentXdgSurface = qobject_cast<QWaylandXdgSurface *>(transientParent->shellSurface());
if (parentXdgSurface)
m_toplevel->set_parent(parentXdgSurface->m_toplevel->object());
}