From a5c69beabfc82d9c3f9563eb821139b2e0f3e14f Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 19 Aug 2026 04:43:28 +0300 Subject: fix(perf): eliminate redundant terminal wake work (#2962) * fix(perf): eliminate redundant terminal wake work * fix(perf): harden release benchmark gate * test(perf): strengthen performance guardrails --- src/input/model.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/input/model.rs') diff --git a/src/input/model.rs b/src/input/model.rs index 21252d2d..cada5506 100644 --- a/src/input/model.rs +++ b/src/input/model.rs @@ -295,6 +295,7 @@ impl KeyboardProtocol { } } +#[cfg(any(unix, test))] #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum MouseProtocolMode { @@ -305,7 +306,9 @@ pub enum MouseProtocolMode { AnyMotion, } +#[cfg(any(unix, test))] impl MouseProtocolMode { + #[cfg(test)] pub fn reporting_enabled(self) -> bool { self != Self::None } -- cgit v1.2.3