From 65fc69859eac21a30d83cefc8d7f2747fe172636 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sun, 5 Apr 2026 23:41:52 -0700 Subject: [PATCH] fix: revert double input_poll that broke keyboard and trackpad input_poll() resets event_count=0 at start, so calling it twice per frame (before and after present) wiped all events from the first call. Revert to single poll before rendering. Co-Authored-By: Claude Opus 4.6 (1M context) --- fedac/native/src/ac-native.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fedac/native/src/ac-native.c b/fedac/native/src/ac-native.c index a02a9b3ef2..cf09f9f30e 100644 --- a/fedac/native/src/ac-native.c +++ b/fedac/native/src/ac-native.c @@ -3389,11 +3389,6 @@ int main(int argc, char *argv[]) { ac_display_present(display, screen, pixel_scale); clock_gettime(CLOCK_MONOTONIC, &_pf_pres1); - // Late input poll: grab any pointer events that arrived during - // rendering. Under Wayland, the compositor flushes motion events - // after our surface commit — polling here halves input latency. - input_poll(input); - // HDMI: render waveform at ~7.5Hz (every 8 frames) — 4K dumb-buf is slow if (hdmi && audio && main_frame % 8 == 0) { drm_secondary_present_waveform(hdmi, &graph, -- 2.51.2