mtk: Move Rectangle.[contains|could_fit]_rect from Meta

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
Bilal Elmoussaoui
2023-07-20 01:02:07 +02:00
parent eafe07de31
commit aec8e50df8
8 changed files with 65 additions and 54 deletions

View File

@ -4012,7 +4012,7 @@ meta_window_move_between_rects (MetaWindow *window,
new_x = new_area->x;
new_y = new_area->y;
}
else if (meta_rectangle_contains_rect (old_area, &window->unconstrained_rect) &&
else if (mtk_rectangle_contains_rect (old_area, &window->unconstrained_rect) &&
old_area->width > window->unconstrained_rect.width &&
old_area->height > window->unconstrained_rect.height &&
new_area->width >= window->unconstrained_rect.width &&