aboutsummaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 9466fcce..1584bc19 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -31,6 +31,12 @@ pub(crate) struct SelectionAutoscroll {
pub last_mouse_screen_row: u16,
pub inner_rect: Rect,
}
+
+#[derive(Clone)]
+pub(crate) struct RightClickPassthroughGesture {
+ pub pane_info: PaneInfo,
+ pub modifiers: KeyModifiers,
+}
use crate::terminal_theme::TerminalTheme;
use crate::workspace::Workspace;
@@ -1238,6 +1244,8 @@ pub struct AppState {
/// Capture mouse input for Herdr's own mouse UI. When false, Herdr only
/// captures mouse while the focused pane app requests mouse reporting.
pub mouse_capture: bool,
+ pub right_click_passthrough_modifiers: Option<KeyModifiers>,
+ pub right_click_passthrough: Option<RightClickPassthroughGesture>,
pub redraw_on_focus_gained: bool,
pub mouse_scroll_lines: usize,
pub confirm_close: bool,
@@ -1548,6 +1556,8 @@ impl AppState {
sidebar_section_split: 0.5,
agent_panel_scope: AgentPanelScope::AllWorkspaces,
mouse_capture: true,
+ right_click_passthrough_modifiers: None,
+ right_click_passthrough: None,
redraw_on_focus_gained: true,
mouse_scroll_lines: crate::config::DEFAULT_MOUSE_SCROLL_LINES,
confirm_close: true,