mutter: Completely replace MetaRectangle with MtkRectangle
There are still various helpers that might be worth to move to mtk as well Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
@ -44,16 +44,16 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (MetaWaylandShellSurface,
|
||||
|
||||
void
|
||||
meta_wayland_shell_surface_calculate_geometry (MetaWaylandShellSurface *shell_surface,
|
||||
MetaRectangle *out_geometry)
|
||||
MtkRectangle *out_geometry)
|
||||
{
|
||||
MetaWaylandSurfaceRole *surface_role =
|
||||
META_WAYLAND_SURFACE_ROLE (shell_surface);
|
||||
MetaWaylandSurface *surface =
|
||||
meta_wayland_surface_role_get_surface (surface_role);
|
||||
MetaRectangle geometry;
|
||||
MtkRectangle geometry;
|
||||
MetaWaylandSurface *subsurface_surface;
|
||||
|
||||
geometry = (MetaRectangle) {
|
||||
geometry = (MtkRectangle) {
|
||||
.width = meta_wayland_surface_get_width (surface),
|
||||
.height = meta_wayland_surface_get_height (surface),
|
||||
};
|
||||
@ -74,11 +74,11 @@ meta_wayland_shell_surface_calculate_geometry (MetaWaylandShellSurface *shell_su
|
||||
|
||||
void
|
||||
meta_wayland_shell_surface_determine_geometry (MetaWaylandShellSurface *shell_surface,
|
||||
MetaRectangle *set_geometry,
|
||||
MetaRectangle *out_geometry)
|
||||
MtkRectangle *set_geometry,
|
||||
MtkRectangle *out_geometry)
|
||||
{
|
||||
MetaRectangle bounding_geometry = { 0 };
|
||||
MetaRectangle intersected_geometry = { 0 };
|
||||
MtkRectangle bounding_geometry = { 0 };
|
||||
MtkRectangle intersected_geometry = { 0 };
|
||||
|
||||
meta_wayland_shell_surface_calculate_geometry (shell_surface,
|
||||
&bounding_geometry);
|
||||
|
Reference in New Issue
Block a user