forked from joejulian/gio
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:
committed by
Elias Naur
parent
69f982e26f
commit
4e488f4c70
@@ -851,7 +851,6 @@ func (w *Window) processEvent(d driver, e event.Event) {
|
||||
w.updateAnimation(d)
|
||||
}
|
||||
w.updateCursor(d)
|
||||
w.out <- e
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user