From b6308ef3bec7ebd46ac830b3d36910171e94edf2 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 28 Apr 2026 01:05:33 +0300 Subject: feat: notify active panes when terminal is unfocused --- src/app/state.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app/state.rs') diff --git a/src/app/state.rs b/src/app/state.rs index 971b1476..facb5187 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -631,6 +631,9 @@ pub struct AppState { pub update_dismissed: bool, pub config_diagnostic: Option, pub toast: Option, + /// Last reported focus state for the outer terminal hosting herdr. + /// None means unsupported or not yet reported, which preserves active-pane suppression. + pub outer_terminal_focus: Option, // Config pub prefix_code: KeyCode, pub prefix_mods: KeyModifiers, @@ -765,6 +768,7 @@ impl AppState { update_dismissed: false, config_diagnostic: None, toast: None, + outer_terminal_focus: None, prefix_code: KeyCode::Char('b'), prefix_mods: KeyModifiers::CONTROL, default_sidebar_width: 26, -- cgit v1.2.3