mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app: [X11] add missing check for destroyed window
Fixes: https://todo.sr.ht/~eliasnaur/gio/577 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -479,6 +479,9 @@ func (w *x11Window) dispatch() {
|
|||||||
switch {
|
switch {
|
||||||
case *xEvents&syscall.POLLIN != 0:
|
case *xEvents&syscall.POLLIN != 0:
|
||||||
syn = w.handler.handleEvents()
|
syn = w.handler.handleEvents()
|
||||||
|
if w.x == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
case *xEvents&(syscall.POLLERR|syscall.POLLHUP) != 0:
|
case *xEvents&(syscall.POLLERR|syscall.POLLHUP) != 0:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user