mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
dnd: Don't leak a signal connection
The handler is currently leaked when a drag monitor stops a
motion event.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2770>
(cherry picked from commit d7542db38c)
This commit is contained in:
parent
2dc00b9c0e
commit
de2627d1e9
1 changed files with 1 additions and 0 deletions
|
|
@ -551,6 +551,7 @@ var _Draggable = class _Draggable extends Signals.EventEmitter {
|
|||
let result = motionFunc(dragEvent);
|
||||
if (result != DragMotionResult.CONTINUE) {
|
||||
global.display.set_cursor(DRAG_CURSOR_MAP[result]);
|
||||
dragEvent.targetActor.disconnect(targetActorDestroyHandlerId);
|
||||
return GLib.SOURCE_REMOVE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue