Commit 70766a44 authored by David Redondo's avatar David Redondo 🏎
Browse files

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


(cherry picked from commit 5caa28c1)
parent 8ce5fa68
Pipeline #137830 passed with stage
in 28 minutes and 51 seconds
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment