forked from joejulian/gio
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 {
|
||||
case *xEvents&syscall.POLLIN != 0:
|
||||
syn = w.handler.handleEvents()
|
||||
if w.x == nil {
|
||||
return
|
||||
}
|
||||
case *xEvents&(syscall.POLLERR|syscall.POLLHUP) != 0:
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user