[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 5 20:02:24 UTC 2021
vcl/source/window/paint.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit 69bd4b2ad4dd81e5f46a8c598e14410baecc732e
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Oct 5 14:30:44 2021 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Oct 5 22:02:02 2021 +0200
do not block out PaintImmediately() in LOK mode
I'm not sure why I did this when disabling LOK idle painting, even
if a window is not to be painted to, it still needs at least
invalidating.
Change-Id: Iaed6b1071d05d05d6bf5195f3803afb1fc018508
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122946
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 8531ead70012..29f34de4f53c 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -594,7 +594,8 @@ void Window::ImplCallPaint(const vcl::Region* pRegion, ImplPaintFlags nPaintFlag
if (!mpWindowImpl->mpFirstChild)
mpWindowImpl->mnPaintFlags &= ~ImplPaintFlags::PaintAllChildren;
- if (mpWindowImpl->mbPaintDisabled)
+ // If tiled rendering is used, windows are only invalidated, never painted to.
+ if (mpWindowImpl->mbPaintDisabled || comphelper::LibreOfficeKit::isActive())
{
if (mpWindowImpl->mnPaintFlags & ImplPaintFlags::PaintAll)
Invalidate(InvalidateFlags::NoChildren | InvalidateFlags::NoErase | InvalidateFlags::NoTransparent | InvalidateFlags::NoClipChildren);
@@ -1316,12 +1317,6 @@ void Window::PaintImmediately()
if (!mpWindowImpl)
return;
- if (comphelper::LibreOfficeKit::isActive())
- {
- // Tiled rendering is used, direct paint does not need to do anything.
- return;
- }
-
if ( mpWindowImpl->mpBorderWindow )
{
mpWindowImpl->mpBorderWindow->PaintImmediately();
More information about the Libreoffice-commits
mailing list