This commit is contained in:
Jeremy Soller 2025-05-15 14:13:07 -06:00 • committed by Ashley Wulber
parent 6de3237687
commit 3553fa2c01
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -541,7 +541,8 @@ impl SubsurfaceState {
sorted_subsurfaces.sort_by(|a, b| a.3.cmp(&b.3)); sorted_subsurfaces.sort_by(|a, b| a.3.cmp(&b.3));
// Attach buffers to subsurfaces, set viewports, and commit. // Attach buffers to subsurfaces, set viewports, and commit.
'outer: for (i, subsurface) in sorted_subsurfaces.iter().enumerate() { 'outer: for (i, subsurface) in sorted_subsurfaces.iter().enumerate()
{
for prev in sorted_subsurfaces[0..i].iter().rev() { for prev in sorted_subsurfaces[0..i].iter().rev() {
if prev.0 == subsurface.0 { if prev.0 == subsurface.0 {
// Fist surface that has `z` greater than 0, so place above parent, // Fist surface that has `z` greater than 0, so place above parent,