[xwl] Cancel the visit when a drag ends
XWL only clears up when a "visit" finishes. If we end a WlToXDrag through clicking we call "WlToXDrag::end" but the visit object stays alive, which obviously will never finish. Both the visit and the drag object then effectively leak and are used on the next drag.
This commit is contained in:
parent
f3d46cee15
commit
4bab721db8
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ bool WlToXDrag::end()
|
|||
// we direclty allow to delete previous visits
|
||||
Q_EMIT finish(this);
|
||||
});
|
||||
m_visit->leave();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue