Commit 31816477 authored by ZenWalker's avatar ZenWalker

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 GNOME/mutter#480
parent 7bd33e7b
Pipeline #67501 passed with stages
in 3 minutes and 41 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment