x/mobile: X11 events freeze when not constantly redrawing #38632
Labels
FrozenDueToAge
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go version go1.13.5 linux/amd64
This issue only happens on X11 and not Android. I want to
a.Send(paint.Event{})
only when an update is needed, but if I do this other events do not come through. After some debugging I found that this is becausePublish()
unblocks the select statement and runsC.processEvents()
. So if no publish is happening, then X11 events are not checked. See: https://github.com/golang/mobile/blob/master/app/x11.go#L63I think
C.processEvents()
should happen in a separate goroutine (unless a more lightweight solution is possible).The text was updated successfully, but these errors were encountered: