core: Rename/repurpose meta_window_resize_frame_with_gravity()

The gravity argument is no longer effective since the previous
commit. Drop the argument, and rename it to "meta_window_resize_frame",
all callers have been updated.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3972>
This commit is contained in:
Carlos Garnacho 2024-08-22 15:40:50 +02:00 committed by Marge Bot
parent fb49a700a1
commit 4664fce695
3 changed files with 14 additions and 18 deletions

View File

@ -1088,11 +1088,10 @@ process_keyboard_resize_grab (MetaWindowDrag *window_drag,
gravity, gravity,
flags); flags);
meta_window_resize_frame_with_gravity (window, meta_window_resize_frame (window,
TRUE, TRUE,
width, width,
height, height);
gravity);
update_keyboard_resize (window_drag, FALSE); update_keyboard_resize (window_drag, FALSE);
} }
@ -1553,9 +1552,8 @@ update_resize (MetaWindowDrag *window_drag,
gravity, gravity,
flags); flags);
meta_window_resize_frame_with_gravity (window, TRUE, meta_window_resize_frame (window, TRUE,
new_rect.width, new_rect.height, new_rect.width, new_rect.height);
gravity);
} }
static gboolean static gboolean

View File

@ -660,11 +660,10 @@ gboolean meta_window_has_fullscreen_monitors (MetaWindow *window);
void meta_window_adjust_fullscreen_monitor_rect (MetaWindow *window, void meta_window_adjust_fullscreen_monitor_rect (MetaWindow *window,
MtkRectangle *monitor_rect); MtkRectangle *monitor_rect);
void meta_window_resize_frame_with_gravity (MetaWindow *window, void meta_window_resize_frame (MetaWindow *window,
gboolean user_op, gboolean user_op,
int w, int w,
int h, int h);
MetaGravity gravity);
gboolean meta_window_should_be_showing_on_workspace (MetaWindow *window, gboolean meta_window_should_be_showing_on_workspace (MetaWindow *window,
MetaWorkspace *workspace); MetaWorkspace *workspace);

View File

@ -4399,11 +4399,10 @@ adjust_size_for_tile_match (MetaWindow *window,
} }
void void
meta_window_resize_frame_with_gravity (MetaWindow *window, meta_window_resize_frame (MetaWindow *window,
gboolean user_op, gboolean user_op,
int w, int w,
int h, int h)
MetaGravity gravity)
{ {
MetaMoveResizeFlags flags; MetaMoveResizeFlags flags;
MtkRectangle rect = { 0, }; MtkRectangle rect = { 0, };