From abb9d291e954f3b80384046d7d4487e1ead6bd6a Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 2 Apr 2019 17:22:58 +0200 Subject: [PATCH] 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 --- ui/app/window.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/app/window.go b/ui/app/window.go index c42e97fb..535cd532 100644 --- a/ui/app/window.go +++ b/ui/app/window.go @@ -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, }