~eliasnaur/gio

abb9d291e954f3b80384046d7d4487e1ead6bd6a — Elias Naur 5 years ago 48b6a73
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>
1 files changed, 1 insertions(+), 2 deletions(-)

M ui/app/window.go
M ui/app/window.go => ui/app/window.go +1 -2
@@ 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,
	}