mirror of
https://github.com/elementary/gala.git
synced 2024-07-14 18:30:28 +03:00
IconGroup: Use cursors for dnd
This commit is contained in:
parent
19ec1174b8
commit
5a917dec1a
@ -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;
|
||||
}
|
||||
|
||||
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user