util: Remove shell_util_get_transformed_allocation

This helper function could be replaced with the new
clutter_actor_get_transformed_extents, that does the same.

See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1386

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1380
This commit is contained in:
Daniel García Moreno
2020-07-29 12:50:47 +02:00
parent 95436a08b5
commit 71d37bffdf
5 changed files with 27 additions and 89 deletions

View File

@ -2335,13 +2335,8 @@ var AppFolderDialog = GObject.registerClass({
}
_withinDialog(x, y) {
const childAllocation =
Shell.util_get_transformed_allocation(this.child);
return x > childAllocation.x1 &&
x < childAllocation.x2 &&
y > childAllocation.y1 &&
y < childAllocation.y2;
const childExtents = this.child.get_transformed_extents();
return childExtents.contains_point(new Graphene.Point({ x, y }));
}
_setupDragMonitor() {