From d8c2fe6ef2279769089fb617e93735217a8668b4 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 26 Dec 2022 12:42:59 +0100 Subject: [PATCH] Revert "Remove continuous resizing workaround for Windows" This reverts commit 18082f60697ae8edad2db950637638c8bb6bf0d2. I can't reproduce, but it seems the workaround improves the behavior on some Windows versions. Fixes #3640 Refs #3458 --- app/src/screen.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/screen.c b/app/src/screen.c index b2c175755d..ae28e6e646 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -306,14 +306,13 @@ sc_screen_render(struct sc_screen *screen, bool update_content_rect) { } -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__WINDOWS__) # define CONTINUOUS_RESIZING_WORKAROUND #endif #ifdef CONTINUOUS_RESIZING_WORKAROUND // On Windows and MacOS, resizing blocks the event loop, so resizing events are -// not triggered. On MacOS, as a workaround, handle them in an event handler -// (it does not work for Windows unfortunately). +// not triggered. As a workaround, handle them in an event handler. // // //