From b6022bbd1079a48c4a052322340730c2ad55e677 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:47:07 +0000 Subject: [PATCH 1/2] Bump gioui.org from 0.7.1 to 0.8.0 Bumps gioui.org from 0.7.1 to 0.8.0. --- updated-dependencies: - dependency-name: gioui.org dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 5 ++--- go.sum | 14 ++++++-------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index ab2dc43..3ea19cb 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,13 @@ go 1.22 toolchain go1.22.3 require ( - gioui.org v0.7.1 + gioui.org v0.8.0 golang.org/x/image v0.23.0 ) require ( - gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7 // indirect gioui.org/shader v1.0.8 // indirect - github.com/go-text/typesetting v0.1.2 // indirect + github.com/go-text/typesetting v0.2.1 // indirect golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect golang.org/x/exp/shiny v0.0.0-20240707233637-46b078467d37 // indirect golang.org/x/sys v0.26.0 // indirect diff --git a/go.sum b/go.sum index eec008a..1b632b7 100644 --- a/go.sum +++ b/go.sum @@ -1,16 +1,14 @@ eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d h1:ARo7NCVvN2NdhLlJE9xAbKweuI9L6UgfTbYb0YwPacY= eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d/go.mod h1:OYVuxibdk9OSLX8vAqydtRPP87PyTFcT9uH3MlEGBQA= -gioui.org v0.7.1 h1:l7OVj47n1z8acaszQ6Wlu+Rxme+HqF3q8b+Fs68+x3w= -gioui.org v0.7.1/go.mod h1:5Kw/q7R1BWc5MKStuTNvhCgSrRqbfHc9Dzfjs4IGgZo= +gioui.org v0.8.0 h1:QV5p5JvsmSmGiIXVYOKn6d9YDliTfjtLlVf5J+BZ9Pg= +gioui.org v0.8.0/go.mod h1:vEMmpxMOd/iwJhXvGVIzWEbxMWhnMQ9aByOGQdlQ8rc= gioui.org/cpu v0.0.0-20210808092351-bfe733dd3334/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ= -gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7 h1:tNJdnP5CgM39PRc+KWmBRRYX/zJ+rd5XaYxY5d5veqA= -gioui.org/cpu v0.0.0-20220412190645-f1e9e8c3b1f7/go.mod h1:A8M0Cn5o+vY5LTMlnRoK3O5kG+rH0kWfJjeKd9QpBmQ= gioui.org/shader v1.0.8 h1:6ks0o/A+b0ne7RzEqRZK5f4Gboz2CfG+mVliciy6+qA= gioui.org/shader v1.0.8/go.mod h1:mWdiME581d/kV7/iEhLmUgUK5iZ09XR5XpduXzbePVM= -github.com/go-text/typesetting v0.1.2 h1:KmZOfoxrrYgghohzXgNY7aQPgQ4W+QeKPeRI8yqpDDE= -github.com/go-text/typesetting v0.1.2/go.mod h1:2+owI/sxa73XA581LAzVuEBZ3WEEV2pXeDswCH/3i1I= -github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66 h1:GUrm65PQPlhFSKjLPGOZNPNxLCybjzjYBzjfoBGaDUY= -github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o= +github.com/go-text/typesetting v0.2.1 h1:x0jMOGyO3d1qFAPI0j4GSsh7M0Q3Ypjzr4+CEVg82V8= +github.com/go-text/typesetting v0.2.1/go.mod h1:mTOxEwasOFpAMBjEQDhdWRckoLLeI/+qrQeBCTGEt6M= +github.com/go-text/typesetting-utils v0.0.0-20241103174707-87a29e9e6066 h1:qCuYC+94v2xrb1PoS4NIDe7DGYtLnU2wWiQe9a1B1c0= +github.com/go-text/typesetting-utils v0.0.0-20241103174707-87a29e9e6066/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o= golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w= golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= golang.org/x/exp/shiny v0.0.0-20240707233637-46b078467d37 h1:SOSg7+sueresE4IbmmGM60GmlIys+zNX63d6/J4CMtU= From 2ad4c8f1756f27669c09b4c8c730ee3e3f9be954 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Thu, 16 Jan 2025 07:49:17 +0100 Subject: [PATCH 2/2] Adopt workaround to changed behaviour of Gioui 0.8.0 --- cmd/main.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 519f553..b7f850c 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,7 +4,6 @@ import ( "fmt" "image/color" "os" - "sync" "time" "gioui.org/app" @@ -81,13 +80,22 @@ func main() { // TODO work around https://todo.sr.ht/~eliasnaur/gio/602 // this should only be required shortly after creating the window w. - applyOptions := sync.OnceFunc(func() { + applyOptions := func() { w.Option(app.Decorated(false)) w.Perform(system.ActionCenter) - }) + } + //applyOptions := sync.OnceFunc(func() { + // w.Option(app.Decorated(false)) + // w.Perform(system.ActionCenter) + //}) var ops op.Ops for { switch e := w.Event().(type) { + //case app.ConfigEvent: + // TODO work around https://todo.sr.ht/~eliasnaur/gio/602 + // this should only be required shortly after creating the window w. + //go applyOptions() + case app.FrameEvent: // TODO work around https://todo.sr.ht/~eliasnaur/gio/602 // this should only be required shortly after creating the window w.