ci: bump go version to latest
The mirror was broken because we started using Go 1.21 features and the CI environment
used Go 1.19. This commit should fix the mirroring to GitHub.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
cursor_position: add simple example for mouse event monitoring
Signed-off-by: Alec Avakov <alec.avakov@gmail.com>
go.*: bump Gio to latest version
Needed to access the changes Decorations.Maximized field.
Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: [Wayland] properly resize only the wl_egl_window
Previously we recreated the entire context in order to resize this one type,
which was horribly inefficient on Wayland and deeply wasteful on other platforms
also.
While here, try to clean up and clarify the core event loop.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: fix livelock in NewWindow
Calling app.Window.Option from another render seems to cause a live-lock.
Signed-off-by: Egon Elbre <egonelbre@gmail.com>
opengl: update button state before layout
This ensures screenshot is actually invoked. Thanks to Aurélien Rainone
for the bug report!
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
all: update to latest Gio API
The updates to the gioui.org/app package are described by #555.
Signed-off-by: Elias Naur <mail@eliasnaur.com>
hello: restore to hello world example
I had accidentally committed a modified program in its place.
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>