app: [X11] send DestroyEvent after ViewEvent{}

Matches the other platforms.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-07-17 14:52:17 +02:00
parent 41de0048db
commit c73125e1c3
+1 -1
View File
@@ -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