aboutsummaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-02 14:24:33 +0300
committerGitHub <noreply@github.com>2026-09-02 14:24:33 +0300
commit6c0bb273d5d5405a00985621b17e36f8b4d64609 (patch)
treeceef5ea8adf337bf3c1e977b133e76cb763c6f1b /src/app/state.rs
parentcc88b3b8e5bb9f7d9f23ed6ae85a52fd7b5b9ed6 (diff)
feat: support independent multi-client tab views (#3526)
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 0ce9fb6d..3d3700b2 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -921,35 +921,6 @@ impl AppState {
})
}
- pub(crate) fn app_surface_pane_ids(&self) -> std::collections::HashSet<PaneId> {
- let mut pane_ids = std::collections::HashSet::new();
- if let Some(popup) = &self.popup_pane {
- pane_ids.insert(popup.pane_id);
- }
- let Some(tab) = self
- .active
- .and_then(|ws_idx| self.workspaces.get(ws_idx))
- .and_then(crate::workspace::Workspace::active_tab)
- else {
- return pane_ids;
- };
- if tab.zoomed {
- pane_ids.insert(tab.layout.focused());
- } else {
- pane_ids.extend(tab.panes.keys().copied());
- }
- pane_ids
- }
-
- pub(crate) fn focused_pane_requests_mouse_capture_from(
- &self,
- terminal_runtimes: &crate::terminal::TerminalRuntimeRegistry,
- ) -> bool {
- self.active
- .and_then(|idx| self.focused_runtime_in_workspace(terminal_runtimes, idx))
- .is_some_and(crate::terminal::TerminalRuntime::mouse_reporting_enabled)
- }
-
pub fn estimate_pane_size(&self) -> (u16, u16) {
if let Some(info) = self.view.pane_infos.first() {
(info.rect.height, info.rect.width)
@@ -984,16 +955,6 @@ impl AppState {
terminal_runtimes.get(terminal_id)
}
- pub(crate) fn focused_runtime_in_workspace<'a>(
- &'a self,
- terminal_runtimes: &'a crate::terminal::TerminalRuntimeRegistry,
- ws_idx: usize,
- ) -> Option<&'a crate::terminal::TerminalRuntime> {
- let ws = self.workspaces.get(ws_idx)?;
- let pane_id = ws.focused_pane_id()?;
- self.runtime_for_pane_in_workspace(terminal_runtimes, ws_idx, pane_id)
- }
-
pub(crate) fn pane_visible_on_active_surface(
&self,
ws_idx: usize,