wayland: Get gravity through MetaWindow getter

Ignore the gravity argument in the move_resize_internal() vmethod,
and use the window getter to get it. It should be functionally
equivalent, and will eventually replace the argument entirely.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3972>
This commit is contained in:
Carlos Garnacho 2024-07-16 13:47:14 +02:00 committed by Marge Bot
parent 37df41097c
commit 33c287e271

View File

@ -276,6 +276,8 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
if (window->unmanaging) if (window->unmanaging)
return; return;
gravity = meta_window_get_gravity (window);
configured_rect.x = constrained_rect.x; configured_rect.x = constrained_rect.x;
configured_rect.y = constrained_rect.y; configured_rect.y = constrained_rect.y;