aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mouse.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-08-19 04:43:28 +0300
committerGitHub <noreply@github.com>2026-08-19 04:43:28 +0300
commita5c69beabfc82d9c3f9563eb821139b2e0f3e14f (patch)
tree9b7049e4629913dcab40d985df399acee262b67b /src/app/input/mouse.rs
parent3667151744e379ac5c8f76d57203b675de8a6ebc (diff)
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
Diffstat (limited to 'src/app/input/mouse.rs')
-rw-r--r--src/app/input/mouse.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs
index 3066c2a4..3c6c86f4 100644
--- a/src/app/input/mouse.rs
+++ b/src/app/input/mouse.rs
@@ -1761,9 +1761,7 @@ impl AppState {
let Some(host) = self.host_mouse_pixels else {
return Some(cell);
};
- let wants_pixels = runtime.input_state().is_some_and(|state| {
- state.mouse_protocol_encoding == crate::input::MouseProtocolEncoding::SgrPixels
- });
+ let wants_pixels = runtime.sgr_pixel_mouse_enabled();
if !wants_pixels {
return Some(cell);
}