scrcpy/app/src
Romain Vimont 1f237a4950 Display disconnected icon before closing
When the connection to the device is lost while mirroring, the window
closed immediately, suggesting scrcpy had crashed.

To make it clear that a disconnection occurred, display a disconnected
icon for 2 seconds before closing the window.
2026-02-24 23:03:33 +01:00
..
adb Detect TCP devices provided by mDNS 2026-02-12 20:08:46 +01:00
android Fix typos 2024-08-05 16:13:02 +02:00
hid Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
sys Use proper argument serialization for Windows 2026-02-12 20:00:59 +01:00
trait Fix segfault on rotation while recording 2026-02-21 10:45:12 +01:00
uhid Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
usb Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
util Extract function to build file paths 2026-02-22 10:00:40 +01:00
audio_player.c Do not attempt to increase audio thread priority 2026-01-17 21:30:19 +01:00
audio_player.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
audio_regulator.c Handle audio stream discontinuities 2025-03-29 14:54:35 +01:00
audio_regulator.h Handle audio stream discontinuities 2025-03-29 14:54:35 +01:00
cli.c Replace SCRCPY_ICON_PATH with SCRCPY_ICON_DIR 2026-02-22 10:00:40 +01:00
cli.h Keep Windows terminal open on error 2026-02-21 12:17:31 +01:00
clock.c Improve delay buffer startup 2024-09-12 11:06:13 +02:00
clock.h Simplify clock estimation 2023-03-30 20:58:33 +02:00
common.h Fix MIN/MAX macros 2023-03-03 01:18:10 +01:00
compat.c Add compat for reallocarray() 2023-03-10 22:22:15 +01:00
compat.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
control_msg.c Add shortcuts to change the camera zoom 2026-01-13 20:40:58 +01:00
control_msg.h Add shortcuts to change the camera zoom 2026-01-13 20:40:58 +01:00
controller.c Introduce non-droppable control messages 2024-09-15 11:21:56 +02:00
controller.h Do not report error on device disconnected 2024-07-06 00:04:07 +02:00
coords.h Use sc_ prefix for size, position and point 2021-10-30 15:20:39 +02:00
decoder.c Detect frame size mismatch in decoder 2026-01-10 11:53:22 +01:00
decoder.h Detect frame size mismatch in decoder 2026-01-10 11:53:22 +01:00
delay_buffer.c Properly handle session packets in delay_buffer 2026-01-10 11:53:22 +01:00
delay_buffer.h Properly handle session packets in delay_buffer 2026-01-10 11:53:22 +01:00
demuxer.c Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
demuxer.h Cleanup includes 2024-12-23 12:19:47 +01:00
device_msg.c Fix UHID_OUTPUT message parsing 2025-10-09 09:35:14 +02:00
device_msg.h Cleanup includes 2024-12-23 12:19:47 +01:00
disconnect.c Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
disconnect.h Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
events.c Add utility to push an SDL event with data 2026-02-22 10:00:40 +01:00
events.h Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
file_pusher.c Cleanup includes 2024-12-23 12:19:47 +01:00
file_pusher.h Use VecDeque in file_pusher 2023-03-10 22:22:15 +01:00
fps_counter.c Cleanup includes 2024-12-23 12:19:47 +01:00
fps_counter.h Cleanup includes 2024-12-23 12:19:47 +01:00
frame_buffer.c Cleanup includes 2024-12-23 12:19:47 +01:00
frame_buffer.h Cleanup includes 2024-12-23 12:19:47 +01:00
icon.c Add filename parameter to icon loading 2026-02-22 10:00:40 +01:00
icon.h Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
input_events.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
input_manager.c Use floating-point for content location 2026-02-09 18:33:44 +01:00
input_manager.h Enable controls for camera video source 2026-01-13 20:27:33 +01:00
keyboard_sdk.c Cleanup includes 2024-12-23 12:19:47 +01:00
keyboard_sdk.h Rename default keyboard implementation to "sdk" 2024-03-01 00:51:41 +01:00
main.c Keep Windows terminal open on error 2026-02-21 12:17:31 +01:00
mouse_capture.c Remove obsolete workaround for macOS 2026-01-08 20:40:51 +01:00
mouse_capture.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
mouse_sdk.c Extend value range for SDK mouse scrolling 2025-06-20 19:54:16 +02:00
mouse_sdk.h Cleanup includes 2024-12-23 12:19:47 +01:00
opengl.c Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
opengl.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
options.c Add option to specify the camera zoom 2026-01-13 20:37:42 +01:00
options.h Add option to specify the camera zoom 2026-01-13 20:37:42 +01:00
packet_merger.c Cleanup includes 2024-12-23 12:19:47 +01:00
packet_merger.h Cleanup includes 2024-12-23 12:19:47 +01:00
receiver.c Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
receiver.h Do not report error on device disconnected 2024-07-06 00:04:07 +02:00
recorder.c Report recording error on write error 2026-02-05 18:27:05 +01:00
recorder.h Cleanup includes 2024-12-23 12:19:47 +01:00
scrcpy.c Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
scrcpy.h Cleanup includes 2024-12-23 12:19:47 +01:00
screen.c Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
screen.h Display disconnected icon before closing 2026-02-24 23:03:33 +01:00
server.c Add option to specify the camera zoom 2026-01-13 20:37:42 +01:00
server.h Add option to specify the camera zoom 2026-01-13 20:37:42 +01:00
shortcut_mod.h Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
texture.c Add function to delete current texture 2026-02-22 10:00:40 +01:00
texture.h Add function to delete current texture 2026-02-22 10:00:40 +01:00
v4l2_sink.c Add session metadata for the video stream 2026-01-10 11:53:22 +01:00
v4l2_sink.h Cleanup includes 2024-12-23 12:19:47 +01:00
version.c Migrate from SDL2 to SDL3 2026-01-06 16:22:48 +01:00
version.h Move version handling to a separate file 2022-02-09 10:15:07 +01:00