libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
11.35k stars 1.98k forks source link

Cocoa_StopTextInput causes a freeze #9859

Open KyleKrein opened 8 months ago

KyleKrein commented 8 months ago

I use ImGui with SDL3 and I started to get freezes on MacOS, when SDL_StopTextInput is called. I investigated and found out that in Cocoa_StartTextInput data.fieldEdit is removed from Superview and then in Cocoa_StopTextInput it tries to remove data.fieldEdit from Superview again. On that line my app freezes, so I guess it needs to have some kind of check, that it was not removed already.

slouken commented 2 months ago

Are you still seeing this? I'm not seeing any way for the fieldEdit to be removed and not get a new parent. Is ImGui modifying the view heirarchy or fieldEdit outside of SDL?