diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-14 22:21:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-14 22:21:15 +0200 |
| commit | b0c05e66635d12a85554f19f1a5e4796dcd68439 (patch) | |
| tree | a5ee18f164e1f9cba666d1d018b3a5f7a9a1d040 /src/client | |
| parent | 5e38e5fb5fc2cc5d30844df71432a60742bcb572 (diff) | |
fix: map pixel mouse by integer cell pitch (#4140)
refs #3295
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/terminal_geometry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/terminal_geometry.rs b/src/client/terminal_geometry.rs index d9120b0d..f15141bb 100644 --- a/src/client/terminal_geometry.rs +++ b/src/client/terminal_geometry.rs @@ -13,8 +13,8 @@ const DEFAULT_CELL_HEIGHT_PX: u32 = 16; /// Average cell size derived from a terminal ioctl pixel extent. /// -/// The extent need not divide evenly by the grid: terminals may include padding, -/// and pixel mouse coordinates retain the raw extent for proportional mapping. +/// The extent need not divide evenly by the grid because terminals may include +/// padding; mouse mapping uses the resulting integer cell pitch. pub(super) fn ioctl_cell_size( columns: u16, rows: u16, |
