summaryrefslogtreecommitdiff
path: root/scene/resources/font.h
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-10-08 17:21:51 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2020-10-08 17:22:03 +0200
commit48a0d44e6716661247832b76c2a6480918e05cc5 (patch)
treebea339171eef38f10d8f8a98b847f60d2f40bbab /scene/resources/font.h
parente46159ab4d0300ca514121f7844888bbfe4a8875 (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 'scene/resources/font.h')
0 files changed, 0 insertions, 0 deletions