wayland: Clean up action matching connections when the target dnd surface dies
This commit is contained in:
parent
877d220bfe
commit
8fb3348600
1 changed files with 6 additions and 0 deletions
|
@ -307,6 +307,12 @@ void DataDeviceInterface::updateDragTarget(SurfaceInterface *surface, quint32 se
|
|||
if (d->drag.posConnection) {
|
||||
disconnect(d->drag.posConnection);
|
||||
}
|
||||
if (d->drag.sourceActionConnection) {
|
||||
disconnect(d->drag.sourceActionConnection);
|
||||
}
|
||||
if (d->drag.targetActionConnection) {
|
||||
disconnect(d->drag.targetActionConnection);
|
||||
}
|
||||
d->drag = DataDeviceInterfacePrivate::Drag();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue