ui/app: don't buffer the app event channel

We used to buffer input events to allow for batch processing
multiple events before redrawing. Now that redraws are scheduled to
run after the native event queue is empty, buffering is no longer
necessary.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-04-02 17:22:58 +02:00
parent 48b6a73753
commit abb9d291e9
+1 -2
View File
@@ -58,8 +58,7 @@ var _ interface {
func newWindow(nw *window) *Window {
w := &Window{
driver: nw,
// Make room for a backlog of input events.
events: make(chan Event, 30),
events: make(chan Event),
acks: make(chan struct{}),
stage: StageInvisible,
}