diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-28 01:05:33 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-28 01:05:33 +0300 |
| commit | b6308ef3bec7ebd46ac830b3d36910171e94edf2 (patch) | |
| tree | 634866d39a3c98f0973d0f08c3da5018d051e337 /src/app/mod.rs | |
| parent | 5a61ae2f9d89320c2e91d58fc3646b5a6a88f44a (diff) | |
feat: notify active panes when terminal is unfocused
Diffstat (limited to 'src/app/mod.rs')
| -rw-r--r-- | src/app/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 26090ebf..3d588403 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -77,6 +77,7 @@ pub struct App { pub render_notify: Arc<Notify>, pub render_dirty: Arc<AtomicBool>, pub(crate) overlay_panes: HashMap<crate::layout::PaneId, OverlayPaneState>, + pub(crate) local_terminal_notifications: bool, } pub(crate) enum LoopEvent { @@ -315,6 +316,7 @@ impl App { update_dismissed: false, config_diagnostic, toast: None, + outer_terminal_focus: None, prefix_code, prefix_mods, default_sidebar_width: config.ui.sidebar_width, @@ -395,6 +397,7 @@ impl App { render_notify, render_dirty, overlay_panes: HashMap::new(), + local_terminal_notifications: true, } } @@ -761,6 +764,8 @@ impl App { } } } + crate::raw_input::RawInputEvent::OuterFocusGained + | crate::raw_input::RawInputEvent::OuterFocusLost => {} crate::raw_input::RawInputEvent::HostDefaultColor { kind, color } => { if apply_host_terminal_theme { self.update_host_terminal_theme(kind, color); |
