From 890113943999bd0332f535864b982190907449c4 Mon Sep 17 00:00:00 2001 From: WakaTaira <50697207+WakaTaira@users.noreply.github.com> Date: Sun, 2 Aug 2026 22:53:08 +0900 Subject: fix(client): query host cell size when the ioctl reports no pixels (#2160) --- src/client/input.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/client/input.rs') diff --git a/src/client/input.rs b/src/client/input.rs index 09e0eb92..fd374491 100644 --- a/src/client/input.rs +++ b/src/client/input.rs @@ -39,11 +39,16 @@ pub fn stdin_reader_loop( event_tx: mpsc::Sender, should_quit: &Arc, host_color_query_sent: bool, + host_cell_size_query_sent: bool, host_mouse_capture_active: Arc, ) { #[cfg(windows)] { - let _ = (host_color_query_sent, host_mouse_capture_active); + let _ = ( + host_color_query_sent, + host_cell_size_query_sent, + host_mouse_capture_active, + ); windows_stdin_reader_loop(event_tx, should_quit); } @@ -52,6 +57,7 @@ pub fn stdin_reader_loop( event_tx, should_quit, host_color_query_sent, + host_cell_size_query_sent, host_mouse_capture_active, ); } @@ -61,6 +67,7 @@ fn unix_stdin_reader_loop( event_tx: mpsc::Sender, should_quit: &Arc, host_color_query_sent: bool, + host_cell_size_query_sent: bool, host_mouse_capture_active: Arc, ) { let stdin = io::stdin(); @@ -71,6 +78,9 @@ fn unix_stdin_reader_loop( framer.host_color_query_sent(); framer.enable_host_color_scheme_change_tracking(); } + if host_cell_size_query_sent { + framer.host_cell_size_query_sent(); + } let mut pending_palette = Vec::new(); while !should_quit.load(Ordering::Acquire) { @@ -422,6 +432,7 @@ fn windows_client_input_event_from_raw( crate::raw_input::RawInputEvent::HostDefaultColor { .. } | crate::raw_input::RawInputEvent::HostPaletteColors { .. } | crate::raw_input::RawInputEvent::HostColorSchemeChanged(_) + | crate::raw_input::RawInputEvent::HostCellSizeReport { .. } | crate::raw_input::RawInputEvent::Unsupported => None, } } -- cgit v1.2.3