forked from joejulian/gio
app: [macOS] stop display after any events that may access it
Fixes: https://todo.sr.ht/~eliasnaur/gio/527 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -788,13 +788,13 @@ func configFor(scale float32) unit.Metric {
|
||||
//export gio_onClose
|
||||
func gio_onClose(view C.CFTypeRef) {
|
||||
w := mustView(view)
|
||||
w.displayLink.Close()
|
||||
w.w.Event(ViewEvent{})
|
||||
deleteView(view)
|
||||
w.w.Event(system.DestroyEvent{})
|
||||
w.displayLink.Close()
|
||||
w.displayLink = nil
|
||||
deleteView(view)
|
||||
C.CFRelease(w.view)
|
||||
w.view = 0
|
||||
w.displayLink = nil
|
||||
}
|
||||
|
||||
//export gio_onHide
|
||||
|
||||
Reference in New Issue
Block a user