mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Wayland] send WaylandViewEvent before DestroyEvent
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user