diff --git a/internal/driver/glfw/loop_desktop.go b/internal/driver/glfw/loop_desktop.go index 652e6cf023..988cbd5bf5 100644 --- a/internal/driver/glfw/loop_desktop.go +++ b/internal/driver/glfw/loop_desktop.go @@ -26,6 +26,7 @@ func (d *gLDriver) initGLFW() { func (d *gLDriver) tryPollEvents() { defer func() { + // See https://github.com/glfw/glfw/issues/1785 and https://github.com/fyne-io/fyne/issues/1024. if r := recover(); r != nil { fyne.LogError(fmt.Sprint("GLFW poll event error: ", r), nil) } diff --git a/internal/driver/glfw/loop_goxjs.go b/internal/driver/glfw/loop_goxjs.go index e5082800ac..baa46fac3c 100644 --- a/internal/driver/glfw/loop_goxjs.go +++ b/internal/driver/glfw/loop_goxjs.go @@ -26,6 +26,7 @@ func (d *gLDriver) initGLFW() { func (d *gLDriver) tryPollEvents() { defer func() { + // See https://github.com/glfw/glfw/issues/1785 and https://github.com/fyne-io/fyne/issues/1024. if r := recover(); r != nil { fyne.LogError(fmt.Sprint("GLFW poll event error: ", r), nil) }