#[allow(clippy::too_many_lines, clippy::cognitive_complexity)] // large but cohesive: single-purpose layout/render/parse routine (one branch per case)
if current_state.mouse_state.is_cursor_locked != previous_state.mouse_state.is_cursor_locked {
fn run_determine(current: &FullWindowState, previous: &FullWindowState) -> Vec<SyntheticEvent> {
fn with_seat(mut s: FullWindowState, seat: u64, x: f32, y: f32, left: bool) -> FullWindowState {