diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-10-08 17:21:51 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-10-08 17:22:03 +0200 |
commit | 48a0d44e6716661247832b76c2a6480918e05cc5 (patch) | |
tree | bea339171eef38f10d8f8a98b847f60d2f40bbab /platform/uwp/context_egl_uwp.h | |
parent | e46159ab4d0300ca514121f7844888bbfe4a8875 (diff) |
Fix x11 display server crash when deleting popup window when unfocused
On FocusOut events, the window could be destroyed while propagating
WINDOW_EVENT_FOCUS_OUT event, which causes the WindowData to be
invalidated, and still used for calls to XUnsetICFocus.
This change moves calls to XUnsetICFocus, and also XSetICFocus in
FocusIn events, before propagating the change of focus event to the
engine, to be safe in any case.
Also setting xic member to nullptr after all calls to XDestroyIC to keep
things clean and consistent.
Fixes #42645
Diffstat (limited to 'platform/uwp/context_egl_uwp.h')
0 files changed, 0 insertions, 0 deletions