diff --git a/internal/async/goroutine.go b/internal/async/goroutine.go index 7b699f67b6..08a42b65e2 100644 --- a/internal/async/goroutine.go +++ b/internal/async/goroutine.go @@ -1,5 +1,9 @@ package async +// mainGoroutineID stores the main goroutine ID. +// This ID must be initialized in main.init because +// a main goroutine may not equal to 1 due to the +// influence of a garbage collector. var mainGoroutineID uint64 func init() { diff --git a/internal/driver/glfw/driver.go b/internal/driver/glfw/driver.go index 2cfba1e9c4..3fd6a214d6 100644 --- a/internal/driver/glfw/driver.go +++ b/internal/driver/glfw/driver.go @@ -22,12 +22,6 @@ import ( "fyne.io/fyne/v2/storage/repository" ) -// mainGoroutineID stores the main goroutine ID. -// This ID must be initialized in main.init because -// a main goroutine may not equal to 1 due to the -// influence of a garbage collector. -var mainGoroutineID uint64 - var curWindow *window // Declare conformity with Driver