mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00: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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user