Skip to content

Commit

Permalink
IconGroup: Use cursors for dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored and danirabbit committed Oct 26, 2023
1 parent 19ec117 commit 5a917de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Widgets/IconGroup.vala
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ namespace Gala {
// disable reactivity so that workspace thumbs can get events
reactive = false;

wm.get_display ().set_cursor (Meta.Cursor.DND_IN_DRAG);

return this;
}

Expand All @@ -534,11 +536,15 @@ namespace Gala {
} else {
drag_canceled ();
}

wm.get_display ().set_cursor (Meta.Cursor.DEFAULT);
}

private void drag_canceled () {
get_parent ().remove_child (this);
restore_group ();

wm.get_display ().set_cursor (Meta.Cursor.DEFAULT);
}

private void restore_group () {
Expand Down

0 comments on commit 5a917de

Please sign in to comment.