From c73125e1c3f63f7eb6fd099de650b601a527bc42 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 17 Jul 2022 14:52:17 +0200 Subject: [PATCH] app: [X11] send DestroyEvent after ViewEvent{} Matches the other platforms. Signed-off-by: Elias Naur --- app/os_x11.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/os_x11.go b/app/os_x11.go index ebac9b83..a6ba0ee8 100644 --- a/app/os_x11.go +++ b/app/os_x11.go @@ -469,7 +469,6 @@ loop: }) } } - w.w.Event(system.DestroyEvent{Err: nil}) } func (w *x11Window) destroy() { @@ -831,6 +830,7 @@ func newX11Window(gioWin *callbacks, options []Option) error { w.setStage(system.StageRunning) w.loop() w.w.Event(X11ViewEvent{}) + w.w.Event(system.DestroyEvent{Err: nil}) w.destroy() }() return nil