Skip to content

Display and control your Android device

Fix window hiding condition

Romain Vimontc07500bb0334
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index 763bff01..acf8d475 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -949,7 +949,7 @@ aoa_complete:
terminate_event_loop();
LOGD("quit...");
- if (options->video_playback) {
+ if (options->window) {
// Close the window immediately on closing, because screen_destroy()
// may only be called once the video demuxer thread is joined (it may
// take time)