From 85119263c5b27b7615034c7551b83f292ad906a0 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Mon, 14 Jul 2025 16:13:41 +0530 Subject: [PATCH] dbg focus --- crates/gpui/src/window.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index a4591017f456d100be01c9ff37202a4ad55ad684..faf2a6702ad19d3f10842ce357e21d12af71454f 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -1273,7 +1273,7 @@ impl Window { if !self.focus_enabled || self.focus == Some(handle.id) { return; } - + println!("actually setting focus"); self.focus = Some(handle.id); self.clear_pending_keystrokes(); self.refresh(); @@ -1809,6 +1809,13 @@ impl Window { let current_focus_path = self.rendered_frame.focus_path(); let current_window_active = self.rendered_frame.window_active; + dbg!( + &previous_focus_path, + ¤t_focus_path, + &previous_window_active, + ¤t_window_active + ); + if previous_focus_path != current_focus_path || previous_window_active != current_window_active {