Related: tdf#155266 skip redisplay of the view when forcing flush
It appears that calling -[NSView display] overwhelms some Intel Macs
so only flush the graphics and skip immediate redisplay of the view.
Change-Id: I7a94a1ada35526c5eda1b793f872e206b4c833ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160399
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
(cherry picked from commit 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160365
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 1d7f0af..2ed305a 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1035,7 +1035,11 @@ void AquaSalFrame::Flush()
{
mbForceFlush = false;
mpGraphics->Flush();
[mpNSView display];
// Related: tdf#155266 skip redisplay of the view when forcing flush
// It appears that calling -[NSView display] overwhelms some Intel Macs
// so only flush the graphics and skip immediate redisplay of the view.
if( ImplGetSVData()->maAppData.mnDispatchLevel <= 0 )
[mpNSView display];
}
}
@@ -1057,7 +1061,11 @@ void AquaSalFrame::Flush( const tools::Rectangle& rRect )
{
mbForceFlush = false;
mpGraphics->Flush( rRect );
[mpNSView display];
// Related: tdf#155266 skip redisplay of the view when forcing flush
// It appears that calling -[NSView display] overwhelms some Intel Macs
// so only flush the graphics and skip immediate redisplay of the view.
if( ImplGetSVData()->maAppData.mnDispatchLevel <= 0 )
[mpNSView display];
}
}