inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
372 stars 13 forks source link

Subsurface render limit is broken #104

Closed flaviozavan closed 2 years ago

flaviozavan commented 2 years ago

The subsurface render limit logic fails for trees with a depth greater than 2. A real world consequence of this bug is that Firefox's permission dialogs don't get rendered (the ones were you allow webcam/location/etc access). I have an experimental branch where the render limit code was removed (though some of the accompanying logic is still in place), Firefox works as expected there.

I am opening this issue to discuss if the render limit has a use I am unaware of, or rather, if we should fix it or remove it.

flaviozavan commented 2 years ago

I should have added that I am talking about this line of code, which only looks at the immediate children

inclement commented 2 years ago

I don't think the subsurface render limit is useful any more. I originally put it in as a hacky way to succeed in sort-of-correct surface rendering at a point where I didn't understand some of how subsurfaces were really supposed to work, but I'm pretty sure I eventually found the correct way and only left it in as I was using it for debugging at one point.

If getting rid of it appears useful then I'm definitely happy to do so.