Skip to content

Commit

Permalink
app: [X11] add missing check for destroyed window
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnaur committed Apr 26, 2024
1 parent 0deb7b3 commit ba1e34e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/os_x11.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
}
Expand Down

0 comments on commit ba1e34e

Please sign in to comment.