We ran into some bugs with SDL2 when implementing it to stream games to the Raspberry Pi (<a href="http://bit.ly/2nIIReG" rel="nofollow">http://bit.ly/2nIIReG</a>). There were issues with relative mouse and absolute mouse mode and cursor placement. Hopefully, this fix helps others. Our changes are tracked in Github (<a href="https://github.com/parsec-cloud/sdl-2.0.5" rel="nofollow">https://github.com/parsec-cloud/sdl-2.0.5</a>)