xwayland: Guard against offers arriving after leaving surface

If the XdndEnter message is handled after leaving the current
wayland surface m_visit will be null.
BUG:449644
This commit is contained in:
David Redondo 2022-02-07 13:17:34 +01:00
parent 7a06ae733c
commit 5caa28c1a3

View file

@ -214,6 +214,10 @@ using Mime = QPair<QString, xcb_atom_t>;
void XToWlDrag::setDragTarget()
{
if (!m_visit) {
return;
}
auto *ac = m_visit->target();
auto seat = waylandServer()->seat();