boxes: Actually check for rectangle containment

Fixes condition duplicated:

          /* If a contains b, just remove b */
          if (meta_rectangle_contains_rect (a, b))
            {
              delete_me = other;
            }
          /* If b contains a, just remove a */
          else if (meta_rectangle_contains_rect (a, b))
            {
              delete_me = compare;
            }

Closes https://gitlab.gnome.org/GNOME/mutter/issues/480
This commit is contained in:
Pablo Barciela 2019-03-03 16:05:55 +01:00
parent 7bd33e7b00
commit 318164779c

View File

@ -468,7 +468,7 @@ merge_spanning_rects_in_region (GList *region)
delete_me = other;
}
/* If b contains a, just remove a */
else if (meta_rectangle_contains_rect (a, b))
else if (meta_rectangle_contains_rect (b, a))
{
delete_me = compare;
}