Skip to content

Commit

Permalink
DragDropAction: Release hovered reference when finishing the action (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tintou authored Jul 10, 2024
1 parent 7bb7908 commit 7818082
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/DragDropAction.vala
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace Gala {
*/
public string drag_id { get; construct; }

public Actor handle { get; private set; }
public Actor? handle { get; private set; }
/**
* Indicates whether a drag action is currently active
*/
Expand Down Expand Up @@ -241,6 +241,7 @@ namespace Gala {
} else if (dragging) {
if (hovered != null) {
finish ();
hovered = null;
} else {
cancel ();
}
Expand Down Expand Up @@ -460,6 +461,7 @@ namespace Gala {
}

dragging = false;
handle = null;
}

private bool is_valid_touch_event (Clutter.Event event) {
Expand Down

0 comments on commit 7818082

Please sign in to comment.