mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app: [X11] send DestroyEvent after ViewEvent{}
Matches the other platforms. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -469,7 +469,6 @@ loop:
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
w.w.Event(system.DestroyEvent{Err: nil})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *x11Window) destroy() {
|
func (w *x11Window) destroy() {
|
||||||
@@ -831,6 +830,7 @@ func newX11Window(gioWin *callbacks, options []Option) error {
|
|||||||
w.setStage(system.StageRunning)
|
w.setStage(system.StageRunning)
|
||||||
w.loop()
|
w.loop()
|
||||||
w.w.Event(X11ViewEvent{})
|
w.w.Event(X11ViewEvent{})
|
||||||
|
w.w.Event(system.DestroyEvent{Err: nil})
|
||||||
w.destroy()
|
w.destroy()
|
||||||
}()
|
}()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user