From cb59594b5b5f1340eac670cc99901a78754e8e7d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 21 Jul 2019 15:36:02 +0200 Subject: [PATCH] Revert "ui/app: make window event queue buffered" Breaks the ack mechanism of sending a dummy ack event to ensure the previous event has been processed. This reverts commit 7582b835bcd02d36e827f5fd119c466364d719ec. --- ui/app/window.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/app/window.go b/ui/app/window.go index 18678760..9851ea46 100644 --- a/ui/app/window.go +++ b/ui/app/window.go @@ -86,9 +86,8 @@ func NewWindow(opts *WindowOptions) *Window { } w := &Window{ - in: make(chan Event), - // Make room for buffered input events. - out: make(chan Event, 100), + in: make(chan Event), + out: make(chan Event), ack: make(chan struct{}), invalidates: make(chan struct{}, 1), frames: make(chan *ui.Ops),