mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
Ignore invisible layers in layer_intersects
Closes: https://gitlab.freedesktop.org/emersion/libliftoff/-/issues/59
This commit is contained in:
parent
7a06f8c597
commit
b9ca919009
1 changed files with 4 additions and 0 deletions
4
layer.c
4
layer.c
|
@ -141,6 +141,10 @@ layer_intersects(struct liftoff_layer *a, struct liftoff_layer *b)
|
|||
{
|
||||
struct liftoff_rect ra, rb;
|
||||
|
||||
if (!layer_is_visible(a) || !layer_is_visible(b)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
layer_get_rect(a, &ra);
|
||||
layer_get_rect(b, &rb);
|
||||
|
||||
|
|
Loading…
Reference in a new issue