diff options
author | Pablo Barciela <[email protected]> | 2019-03-06 03:55:38 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-06 03:55:38 +0100 |
commit | 13f3a8b411e7588a0e6c4991a3ced554bedee0f3 (patch) | |
tree | 851e8f81bac05726afc04accea18fcfe3e45d7a6 /src/core | |
parent | fb920d7a52f755577ced7d9512b3fc5ec5ac83df (diff) | |
download | marco-13f3a8b411e7588a0e6c4991a3ced554bedee0f3.tar.bz2 marco-13f3a8b411e7588a0e6c4991a3ced554bedee0f3.tar.xz |
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;
}
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/boxes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/boxes.c b/src/core/boxes.c index 93f7db44..19dd939e 100644 --- a/src/core/boxes.c +++ b/src/core/boxes.c @@ -414,7 +414,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; } |