New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile/app: basic app doesn't exit when window is closed #12828
Comments
This is happening on Mac OS X also. |
/cc @crawshaw |
On X11, closing the window triggers In the A possible fix could be to actually close Edit: possibly related, if the example's main loop does not send paint events itself (suppose a GUI app that does no animations), no other events are received, dead lock. Haven't investigated this yet, but this is to keep in mind when fixing. |
I have a much simpler working fix that uses a boolean |
@db47h: I'd like to see if we could sort this out in the shiny version of closing the events channel first, and then copy that code into x/mobile. |
CL https://golang.org/cl/16960 mentions this issue. |
CL https://golang.org/cl/17055 mentions this issue. |
Apps can exist properly today, except windows (see #49499). Close. |
I tried running the basic example with:
go install golang.org/x/mobile/example/basic && basic
When clicking the close-window button, the application does not exit. It does stop repainting however, and appears hung. I tried inserting some log lines for lifetime events, but there doesn't seem to be any event sent when the window is closed, but the paint.Event stops.
This is on Arch Linux running Gnome 3.16.
The text was updated successfully, but these errors were encountered: