Fixes #2930 <https://github.com/Genymobile/scrcpy/issues/2930> Refs #3012 <https://github.com/Genymobile/scrcpy/pull/3012>