fix get_Widgets_at

This commit is contained in:
Will McGugan
2022-10-04 09:55:34 +01:00
parent 38924b3143
commit 3c33c7fee7

View File

@@ -553,7 +553,7 @@ class Compositor:
Iterable[tuple[Widget, Region]]: Sequence of (WIDGET, REGION) tuples.
"""
contains = Region.contains
for widget, cropped_region, region in self.layers_visible.get(y, []):
for widget, cropped_region, region in self.layers_visible[y]:
if contains(cropped_region, x, y) and widget.visible:
yield widget, region