From 003616bd2c0807bb5171682a3b7bb64d007d4569 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 6 Apr 2026 12:10:15 +0200 Subject: [PATCH] Always set hints Some hints can be useful even when window is dsabled. Refs #6754 --- app/src/scrcpy.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 141e98bc..39c26bdd 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -487,11 +487,9 @@ scrcpy(struct scrcpy_options *options) { return SCRCPY_EXIT_FAILURE; } - if (options->window) { - // Set hints before starting the server thread to avoid race conditions - // in SDL - sdl_set_hints(options->render_driver); - } + // Set hints before starting the server thread to avoid race conditions in + // SDL + sdl_set_hints(options->render_driver); if (!sc_server_start(&s->server)) { goto end;