From 1c2e96bcc79f93830f21fe6f5839998373a95768 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 4 Feb 2022 14:20:23 +0100 Subject: [PATCH] app: [Wayland] send WaylandViewEvent before DestroyEvent Signed-off-by: Elias Naur --- app/os_wayland.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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