X11: Fix panic when dropping window before running event loop (#694)
Fixes #691 Dropping a window before running the `EventsLoop` results in events still being queued when `XDestroyWindow` is called, so events like `XI_Enter` (the culprit in this case) will still be processed. Simply checking that the window still exists before calling `query_pointer` was enough to solve the problem.
This commit is contained in:
parent
dd52364d33
commit
917db35a84
2 changed files with 17 additions and 9 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# Unreleased
|
||||
|
||||
- On X11, fixed panic caused by dropping the window before running the event loop.
|
||||
|
||||
# Version 0.18.0 (2018-11-07)
|
||||
|
||||
- **Breaking:** `image` crate upgraded to 0.20. This is exposed as part of the `icon_loading` API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue