From 3ecacfddae86d603bfd0d1a0c01602b1d34b1df3 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 17 May 2026 01:41:17 +0300 Subject: feat: add direct terminal attach stream --- src/app/state.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/app/state.rs') diff --git a/src/app/state.rs b/src/app/state.rs index daed47f0..ff5357b2 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -822,6 +822,8 @@ pub struct AppState { std::collections::HashMap, pub terminal_runtimes: std::collections::HashMap, + /// Terminal ids whose size is currently owned by a direct attach client. + pub direct_attach_resize_locks: std::collections::HashSet, pub workspaces: Vec, pub active: Option, pub selected: usize, @@ -933,8 +935,7 @@ impl AppState { self.mode == Mode::Terminal && self .active - .and_then(|idx| self.workspaces.get(idx)) - .and_then(crate::workspace::Workspace::focused_runtime) + .and_then(|idx| self.focused_runtime_in_workspace(idx)) .and_then(crate::pane::PaneRuntime::input_state) .is_some_and(crate::pane::InputState::mouse_reporting_enabled) } @@ -1060,6 +1061,7 @@ impl AppState { Self { terminals: std::collections::HashMap::new(), terminal_runtimes: std::collections::HashMap::new(), + direct_attach_resize_locks: std::collections::HashSet::new(), workspaces: Vec::new(), active: None, selected: 0, -- cgit v1.2.3