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 <jackmordaunt.dev@gmail.com>
This commit is contained in:
Jack Mordaunt
2022-03-31 22:33:03 +08:00
committed by Elias Naur
parent 69f982e26f
commit 4e488f4c70
-1
View File
@@ -851,7 +851,6 @@ func (w *Window) processEvent(d driver, e event.Event) {
w.updateAnimation(d)
}
w.updateCursor(d)
w.out <- e
}
}