vcl/osx/salframeview.mm |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit eaf8fc199c36ee8613655876c5c202b22d7f15da
Author:     Patrick Luby <[email protected]>
AuthorDate: Sat Dec 9 16:19:18 2023 -0500
Commit:     Noel Grandin <[email protected]>
CommitDate: Tue Dec 12 11:42:39 2023 +0100

    tdf#158461 eliminate flicker during live resizing
    
    When using Skia/Metal, the window content will flicker while
    live resizing a window if we don't send a paint event.
    
    Change-Id: Ib3edc497e26e6abfdfd17a34f9269a3eae090805
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160519
    Tested-by: Jenkins
    Reviewed-by: Patrick Luby <[email protected]>
    (cherry picked from commit f7e81a321bc3e4880fc652e7ba24867bba557007)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160480
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 5cf9fb96ca13..54df8d390f53 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -463,8 +463,12 @@ static void updateWinDataInLiveResize(bool bInLiveResize)
         else
         {
             [self clearLiveResizeTimer];
-            mpFrame->SendPaintEvent();
         }
+
+        // tdf#158461 eliminate flicker during live resizing
+        // When using Skia/Metal, the window content will flicker while
+        // live resizing a window if we don't send a paint event.
+        mpFrame->SendPaintEvent();
     }
 
     mbInWindowDidResize = NO;

Reply via email to