app: [Wayland] send WaylandViewEvent before DestroyEvent

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-02-04 14:20:23 +01:00
parent 4416a13786
commit 1c2e96bcc7
+1 -1
View File
@@ -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