wayland: Avoid meta_window_move_resize_internal()

We are using no placing flags, so this is essentially the same
as meta_window_move_resize().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3972>
This commit is contained in:
Carlos Garnacho 2024-08-22 15:23:23 +02:00 committed by Marge Bot
parent 4664fce695
commit 92cbefd863
2 changed files with 7 additions and 11 deletions

View File

@ -425,12 +425,11 @@ meta_wayland_xdg_session_state_restore_window (MetaSessionState *state,
if (rect) if (rect)
{ {
meta_window_move_resize_internal (window, meta_window_move_resize (window,
(META_MOVE_RESIZE_WAYLAND_CLIENT_RESIZE | (META_MOVE_RESIZE_WAYLAND_CLIENT_RESIZE |
META_MOVE_RESIZE_WAYLAND_FINISH_MOVE_RESIZE | META_MOVE_RESIZE_WAYLAND_FINISH_MOVE_RESIZE |
META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_MOVE_ACTION |
META_MOVE_RESIZE_RESIZE_ACTION), META_MOVE_RESIZE_RESIZE_ACTION),
META_PLACE_FLAG_NONE,
*rect); *rect);
} }

View File

@ -1342,10 +1342,7 @@ meta_window_wayland_finish_move_resize (MetaWindow *window,
meta_window_actor_set_tied_to_drag (window_actor, TRUE); meta_window_actor_set_tied_to_drag (window_actor, TRUE);
} }
meta_window_move_resize_internal (window, meta_window_move_resize (window, flags, rect);
flags,
META_PLACE_FLAG_NONE,
rect);
} }
void void