forked from joejulian/gio
ui/app: make window event queue buffered
Input events are asynchronous, so add buffered to the event queue so that a slow client does not stall the native window. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ func NewWindow(opts *WindowOptions) *Window {
|
||||
|
||||
w := &Window{
|
||||
in: make(chan Event),
|
||||
out: make(chan Event),
|
||||
// Make room for buffered input events.
|
||||
out: make(chan Event, 100),
|
||||
ack: make(chan struct{}),
|
||||
invalidates: make(chan struct{}, 1),
|
||||
frames: make(chan *ui.Ops),
|
||||
|
||||
Reference in New Issue
Block a user