Undo inlining

This commit is contained in:
Darren Burns
2022-09-15 14:12:42 +01:00
parent 3dd83d3df2
commit c3eb54319b

View File

@@ -607,7 +607,11 @@ class Compositor:
def is_visible(widget: Widget) -> bool:
"""Return True if the widget is (literally) visible by examining various
properties which affect whether it can be seen or not."""
return widget.styles.visibility != "hidden" and widget.styles.opacity > 0
return (
widget.visible
and not widget.is_transparent
and widget.styles.opacity > 0
)
if self.map:
if crop: