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
..
2023-04-02 19:30:23 +02:00
2021-04-18 14:36:31 +02:00
2022-09-25 15:42:33 +02:00
2023-03-11 15:57:25 +01:00
2023-06-10 16:04:51 +02:00
2023-03-14 23:54:07 +01:00
2023-06-22 01:15:39 +02:00
2021-10-27 18:43:47 +02:00
2023-03-30 20:58:33 +02:00
2023-03-30 20:58:33 +02:00
2023-03-03 01:18:10 +01:00
2023-03-10 22:22:15 +01:00
2023-04-23 12:26:46 +02:00
2023-01-30 20:57:54 +01:00
2023-01-30 20:57:54 +01:00
2023-03-10 22:22:15 +01:00
2023-03-10 22:22:15 +01:00
2023-03-11 15:57:25 +01:00
2023-03-11 15:57:25 +01:00
2023-03-30 20:58:33 +02:00
2023-06-01 09:04:00 +02:00
2023-03-10 22:22:15 +01:00
2022-08-28 15:23:08 +02:00
2023-05-22 18:21:10 +02:00
2023-05-22 18:21:10 +02:00
2023-06-10 16:04:51 +02:00
2023-03-10 22:22:15 +01:00
2022-01-27 19:02:07 +01:00
2022-04-12 23:59:01 +02:00
2023-04-06 19:48:01 +02:00
2023-04-06 19:48:01 +02:00
2023-03-10 22:22:15 +01:00
2023-01-30 20:57:54 +01:00
2022-01-14 22:17:30 +01:00
2022-03-30 12:01:01 +02:00
2023-06-10 16:04:51 +02:00
2023-06-10 16:04:51 +02:00
2023-02-11 09:44:33 +01:00
2023-02-11 09:44:33 +01:00
2023-02-18 09:37:31 +01:00
2023-02-18 09:37:31 +01:00
2023-06-10 16:04:51 +02:00
2023-06-29 19:18:32 +02:00
2023-05-22 18:22:45 +02:00
2023-06-22 01:07:09 +02:00
2023-06-05 19:48:21 +02:00
2023-03-12 12:45:49 +01:00
2023-03-11 15:57:25 +01:00
2022-02-09 10:15:19 +01:00