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,13 +425,12 @@ meta_wayland_xdg_session_state_restore_window (MetaSessionState *state,
if (rect)
{
meta_window_move_resize_internal (window,
(META_MOVE_RESIZE_WAYLAND_CLIENT_RESIZE |
META_MOVE_RESIZE_WAYLAND_FINISH_MOVE_RESIZE |
META_MOVE_RESIZE_MOVE_ACTION |
META_MOVE_RESIZE_RESIZE_ACTION),
META_PLACE_FLAG_NONE,
*rect);
meta_window_move_resize (window,
(META_MOVE_RESIZE_WAYLAND_CLIENT_RESIZE |
META_MOVE_RESIZE_WAYLAND_FINISH_MOVE_RESIZE |
META_MOVE_RESIZE_MOVE_ACTION |
META_MOVE_RESIZE_RESIZE_ACTION),
*rect);
}
window->placed = TRUE;

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_move_resize_internal (window,
flags,
META_PLACE_FLAG_NONE,
rect);
meta_window_move_resize (window, flags, rect);
}
void