scrcpy/app/src/trait
Romain Vimont 6e251f9525 Add mechanism to avoid resize loops
So far, scrcpy always resized the window whenever a frame with a new
size was received. However, with the upcoming "flex display" feature,
the size of the virtual display can change either on its own (e.g.,
due to app rotation) or as a result of a client window resize.

Track the cause of each resize and signal it in the session metadata.

Resize the window only if the change was not triggered by a client
request to prevent resize loops and stuttering.
2026-04-16 21:46:10 +02:00
..
frame_sink.h Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
frame_source.c Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
frame_source.h Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
gamepad_processor.h Cleanup includes 2024-12-23 12:19:47 +01:00
key_processor.h Cleanup includes 2024-12-23 12:19:47 +01:00
mouse_processor.h Cleanup includes 2024-12-23 12:19:47 +01:00
packet_sink.h Add mechanism to avoid resize loops 2026-04-16 21:46:10 +02:00
packet_source.c Fix segfault on rotation while recording 2026-02-21 10:45:12 +01:00
packet_source.h Add session metadata for the video stream 2026-01-10 11:53:22 +01:00