Revert "internal/uidriver/glfw: Bug fix: Delay to enable SetSize callback"

This reverts commit fbe6961528.

Reason: This doesn't fix the issue unfortunately
This commit is contained in:
Hajime Hoshi 2021-04-20 23:01:02 +09:00
parent fbe6961528
commit ec5b806241

View File

@ -814,6 +814,7 @@ func (u *UserInterface) init() error {
if err := u.createWindow(); err != nil {
return err
}
u.setSizeCallbackEnabled = true
setSize := func() {
ww, wh := u.getInitWindowSize()
@ -848,10 +849,6 @@ func (u *UserInterface) init() error {
g.SetWindow(u.nativeWindow())
}
// Enable the SetSize callback after all the initialization finishes. Or, unexpected the callback
// is fired unexpectedly at the initial phase with a very small size on Linux.
u.setSizeCallbackEnabled = true
return nil
}