mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
7bd33e7b00
commit
318164779c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user