forked from joejulian/gio
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:
+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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user