Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down