mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
app: ignore incoming window events to dead windows
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+5
-2
@@ -233,8 +233,11 @@ func (c *callbacks) SetDriver(d window.Driver) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *callbacks) Event(e event.Event) {
|
func (c *callbacks) Event(e event.Event) {
|
||||||
c.w.in <- e
|
select {
|
||||||
<-c.w.ack
|
case c.w.in <- e:
|
||||||
|
<-c.w.ack
|
||||||
|
case <-c.w.dead:
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Window) waitAck() {
|
func (w *Window) waitAck() {
|
||||||
|
|||||||
Reference in New Issue
Block a user