From acac967c63a4d83e95f1a98fa14771a47a87dc3b Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Fri, 3 Oct 2025 18:57:12 +0530 Subject: [PATCH] fix macos focus issue --- crates/gpui/src/platform/mac/window.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 1e822a5b72873a77f692676608f0de0a84ff5151..ae67410aceea92dbdd28603f305474347679e6e8 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -1995,26 +1995,6 @@ extern "C" fn window_did_change_key_status(this: &Object, selector: Sel, _: id) let executor = lock.executor.clone(); drop(lock); - // If window is becoming active, trigger immediate synchronous frame request. - if selector == sel!(windowDidBecomeKey:) && is_active { - let window_state = unsafe { get_window_state(this) }; - let mut lock = window_state.lock(); - - if let Some(mut callback) = lock.request_frame_callback.take() { - #[cfg(not(feature = "macos-blade"))] - lock.renderer.set_presents_with_transaction(true); - lock.stop_display_link(); - drop(lock); - callback(Default::default()); - - let mut lock = window_state.lock(); - lock.request_frame_callback = Some(callback); - #[cfg(not(feature = "macos-blade"))] - lock.renderer.set_presents_with_transaction(false); - lock.start_display_link(); - } - } - executor .spawn(async move { let mut lock = window_state.as_ref().lock();