mirror of
https://github.com/elementary/gala.git
synced 2024-11-30 19:27:01 +03:00
minimal cleanup to DragDropAction, fix icons staying when hover event is spammed
This commit is contained in:
parent
486b505823
commit
6697265dd9
@ -248,9 +248,9 @@ namespace Gala
|
||||
last_y = y;
|
||||
|
||||
var stage = actor.get_stage ();
|
||||
var actor = actor.get_stage ().get_actor_at_pos (PickMode.REACTIVE, (int)x, (int)y);
|
||||
var actor = stage.get_actor_at_pos (PickMode.REACTIVE, (int) x, (int) y);
|
||||
DragDropAction action = null;
|
||||
// if we're allowed to bubble and we this actor is not a destination, check its parents
|
||||
// if we're allowed to bubble and this actor is not a destination, check its parents
|
||||
if (actor != null && (action = get_drag_drop_action (actor)) == null && allow_bubbling) {
|
||||
while ((actor = actor.get_parent ()) != stage) {
|
||||
if ((action = get_drag_drop_action (actor)) != null)
|
||||
|
@ -446,7 +446,9 @@ namespace Gala
|
||||
|
||||
} else
|
||||
w.destroy ();
|
||||
break;
|
||||
|
||||
// don't break here! If people spam hover events and we animate
|
||||
// removal, we can actually multiple instances of the same window icon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user