diff --git a/app/os_wayland.go b/app/os_wayland.go index 30be4ce1..ef44a35e 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -257,9 +257,9 @@ func newWLWindow(callbacks *callbacks, options []Option) error { Display: unsafe.Pointer(w.display()), Surface: unsafe.Pointer(w.surf), }) - defer w.w.Event(WaylandViewEvent{}) err := w.loop() + w.w.Event(WaylandViewEvent{}) w.w.Event(system.DestroyEvent{Err: err}) }() return nil