From 4e488f4c703bcb7e6a5695c6b2cddf70549d6636 Mon Sep 17 00:00:00 2001 From: Jack Mordaunt Date: Thu, 31 Mar 2022 22:33:03 +0800 Subject: [PATCH] app: [API] don't relay raw input events from app.Window Avoid sending raw inputs events over the window channel. If the caller wants to access events, they should be using input handlers and querying for events. This change avoids saturating the channel with less important messages which can affect frame event latency, especially in the case of custom rendering. See also https://lists.sr.ht/~eliasnaur/gio/%3CCAFcc3FQNTp_UXr7oA97SsVPD7D91jSw30ZtALcT9vmopFDTeZQ%40mail.gmail.com%3E Signed-off-by: Jack Mordaunt --- app/window.go | 1 - 1 file changed, 1 deletion(-) diff --git a/app/window.go b/app/window.go index 49ae09d6..f71375f0 100644 --- a/app/window.go +++ b/app/window.go @@ -851,7 +851,6 @@ func (w *Window) processEvent(d driver, e event.Event) { w.updateAnimation(d) } w.updateCursor(d) - w.out <- e } }