Skip to content

Commit 0e810c5

Browse files
committed
fix: remove initial WaitEvent
now that we have implemented the proper event loop. Delete the first WaitEvent
1 parent 75d1c81 commit 0e810c5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

application.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ func (a *Application) Run() error {
266266
a.window.SetRefreshCallback(m.glfwRefreshCallback)
267267
a.window.SetPosCallback(m.glfwPosCallback)
268268

269-
// flutter's PlatformMessage handler is registered through the dart:ui.Window
270-
// interface. ui.Window must have at least paint one frame, before any
271-
// platfrom message can be corectly handled by ui.Window.onPlatformMessage.
272-
glfw.WaitEvents()
273-
274269
for _, p := range a.config.plugins {
275270
// Extra init call for plugins that satisfy the PluginTexture interface.
276271
if glfwPlugin, ok := p.(PluginTexture); ok {

0 commit comments

Comments
 (0)