mtk: Move Rectangle.equal from Meta
Moves equal the equal function and removes the clutter equivalent. The tests were not moved until all the remaining helper functions are moved. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
@ -969,8 +969,8 @@ constrain_custom_rule (MetaWindow *window,
|
||||
meta_rectangle_intersect (&adjusted_unconstrained, &info->work_area_monitor,
|
||||
&intersection);
|
||||
|
||||
constraint_satisfied = (meta_rectangle_equal (&info->current,
|
||||
&adjusted_unconstrained) &&
|
||||
constraint_satisfied = (mtk_rectangle_equal (&info->current,
|
||||
&adjusted_unconstrained) &&
|
||||
is_custom_rule_satisfied (&adjusted_unconstrained,
|
||||
placement_rule,
|
||||
&intersection));
|
||||
@ -1352,7 +1352,7 @@ constrain_fullscreen (MetaWindow *window,
|
||||
|
||||
/* Determine whether constraint is already satisfied; exit if it is */
|
||||
constraint_already_satisfied =
|
||||
meta_rectangle_equal (&info->current, &monitor);
|
||||
mtk_rectangle_equal (&info->current, &monitor);
|
||||
if (check_only || constraint_already_satisfied)
|
||||
return constraint_already_satisfied;
|
||||
|
||||
|
Reference in New Issue
Block a user