scrcpy/app
Romain Vimont 85b55b3c4e Fix possible division by zero
On sway (a window manager), SDL_WINDOWEVENT_EXPOSED and
SDL_WINDOWEVENT_SIZE_CHANGED might not be called before a mouse event is
triggered. As a consequence, the "content rectangle" might not be
initialized when the mouse event is processed, causing a division by
zero.

To avoid the problem, initialize the content rect immediately when the
window is shown.

Fixes #4115 <https://github.com/Genymobile/scrcpy/issues/4115>
2023-06-29 19:18:32 +02:00
..
data Add --time-limit 2023-06-10 16:04:51 +02:00
prebuilt-deps Upgrade platform-tools (34.0.3) for Windows 2023-06-22 00:10:37 +02:00
src Fix possible division by zero 2023-06-29 19:18:32 +02:00
tests Add separate video and audio playback options 2023-05-27 10:08:10 +02:00
meson.build Add --time-limit 2023-06-10 16:04:51 +02:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 2.1 2023-06-22 01:15:44 +02:00
scrcpy.1 Merge branch 'master' into release 2023-06-22 01:15:39 +02:00