Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Ignore stacking order entry ids in `was_top_layer`

Julia831769ce8c43
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs
index e3f9a847895..085f7656195 100644
--- a/crates/gpui/src/window.rs
+++ b/crates/gpui/src/window.rs
@@ -808,8 +808,16 @@ impl<'a> WindowContext<'a> {
break;
}
- if bounds.contains(point) && !opaque_level.starts_with(level) {
- return false;
+ if bounds.contains(point) {
+ let starts_with = opaque_level
+ .iter()
+ .zip(level.iter())
+ .all(|(a, b)| a.z_index == b.z_index)
+ && opaque_level.len() >= level.len();
+
+ if !starts_with {
+ return false;
+ }
}
}
true