windowPreview: Adapt to ClutterActor API changes

The API of clutter_actor_allocate_preferred_size() changed with
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1310, so adapt to
this change and pass the origin to the function.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1322
This commit is contained in:
Jonas Dreßler 2020-06-19 14:13:12 +02:00 committed by verdre
parent 9297d87775
commit 06df79286d

View File

@ -97,7 +97,7 @@ var WindowPreviewLayout = GObject.registerClass({
child.allocate(childBox);
} else {
child.allocate_preferred_size();
child.allocate_preferred_size(0, 0);
}
}
}