From 61e73b7b631a3febaccc18a5759aa561d25a127c Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 11 May 2020 03:39:20 +0200 Subject: [PATCH] Apply resizing workaround on size changed The "resized" event is called on user resizing only, while "size changed" is called on any resize, including at every step of a progressive resize animation. --- app/src/scrcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index e56ad84d..baa4cec4 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -133,7 +133,7 @@ static int event_watcher(void *data, SDL_Event *event) { (void) data; if (event->type == SDL_WINDOWEVENT - && event->window.event == SDL_WINDOWEVENT_RESIZED) { + && event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) { // In practice, it seems to always be called from the same thread in // that specific case. Anyway, it's just a workaround. screen_render(&screen);