mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +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) {
|
||||
c.w.in <- e
|
||||
<-c.w.ack
|
||||
select {
|
||||
case c.w.in <- e:
|
||||
<-c.w.ack
|
||||
case <-c.w.dead:
|
||||
}
|
||||
}
|
||||
|
||||
func (w *Window) waitAck() {
|
||||
|
||||
Reference in New Issue
Block a user