cleanup scroll patch

This commit is contained in:
Henry Hiles 2026-10-20 11:11:26 -04:00
commit 22b7b1b3cc
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -104,10 +104,10 @@
} }
} }
} }
@@ -1080,6 +1065,25 @@ @@ -1079,6 +1064,25 @@
}
} }
/// Returns `true` if a VT switch key has been handled.
+/// Accumulate high-resolution scroll for a scroll binding. +/// Accumulate high-resolution scroll for a scroll binding.
+/// +///
+/// High-resolution wheels send several events per notch, each with part of the 120 units of a +/// High-resolution wheels send several events per notch, each with part of the 120 units of a
@ -127,6 +127,6 @@
+ } + }
+} +}
+ +
/// Returns `true` if a VT switch key has been handled.
fn handle_vt_switch(backend: &mut Backend, key_state: KeyState, modified: Keysym) -> bool { fn handle_vt_switch(backend: &mut Backend, key_state: KeyState, modified: Keysym) -> bool {
if key_state == KeyState::Released { if key_state == KeyState::Released {
// We only do VT switch on presses.