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
...@@ -468,7 +468,7 @@ merge_spanning_rects_in_region (GList *region) ...@@ -468,7 +468,7 @@ merge_spanning_rects_in_region (GList *region)
delete_me = other; delete_me = other;
} }
/* If b contains a, just remove a */ /* 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; 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