Fix xwayland DND crash
Drag and drop objects slightly outlive wayland's DND concept as we have to cancel the client and wait for a response. This normally is fine, except in the case that the drag ended because the sender quit. Calling setWlSource on drag ends creates a matching pair with Dnd::startDrag where we first set the source and has parralels with clipboard. Selection::handleSelectionRequest checks for the presence of a source. I could not reproduce the original bug. BUG: 448920
This commit is contained in:
parent
db1f7414b7
commit
fdea6d151e
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ void Dnd::endDrag()
|
|||
connect(m_currentDrag, &Drag::finish, this, &Dnd::clearOldDrag);
|
||||
m_oldDrags << m_currentDrag;
|
||||
}
|
||||
setWlSource(nullptr);
|
||||
m_currentDrag = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue