I finally found a workaround for this issue that actually works. It is very definitively a bug in SDL2 and the workaround I found is for a different issue in SDL2 but appears to work around this issue as well.
I finally found a workaround for this issue that actually works. It is very definitively a bug in SDL2 and the workaround I found is for a different issue in SDL2 but appears to work around this issue as well.