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.

workspace: Prevent overwriting window bounds when window is not active (#60950)

i18u40102ee7c2c4
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 699e1ca5831..b93e8a64bfd 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -1779,6 +1779,9 @@ impl Workspace {
let subscriptions = vec![
cx.observe_window_activation(window, Self::on_window_activation_changed),
cx.observe_window_bounds(window, move |this, window, cx| {
+ if !window.is_window_active() {
+ return;
+ }
if this.bounds_save_task_queued.is_some() {
return;
}