mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-08 02:45:38 +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()),
|
Display: unsafe.Pointer(w.display()),
|
||||||
Surface: unsafe.Pointer(w.surf),
|
Surface: unsafe.Pointer(w.surf),
|
||||||
})
|
})
|
||||||
defer w.w.Event(WaylandViewEvent{})
|
|
||||||
|
|
||||||
err := w.loop()
|
err := w.loop()
|
||||||
|
w.w.Event(WaylandViewEvent{})
|
||||||
w.w.Event(system.DestroyEvent{Err: err})
|
w.w.Event(system.DestroyEvent{Err: err})
|
||||||
}()
|
}()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user