Check whether m_toplevel exists before dereferencing it
The parent surface could be a popup. In that case m_toplevel would be
nullptr. Since xdgshell doesn't allow an xdg_popup to be the parent of
an xdg_toplevel, the best we can do is pretend there is no parent in
this case.
Fixes: QTBUG-130128
Pick-to: 6.8
Change-Id: Ib0367429b71ee96cbd1c3119e77769c511370624
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
| commit | 9c00d532b1d7fbca8da658bc8a3bb2c53a47ae29 |
| parent | 8b154dd74d981ca749f08d1ead291d733c4d5786 |
| author | Paul Olav Tvete <paul.tvete@qt.io> |
| committer | Paul Olav Tvete <paul.tvete@qt.io> |
| commit time | Thu, 31 Oct 2024 10:36:56 +0100 |