[Libreoffice-commits] core.git: Branch 'feature/skia' - vcl/skia

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 14 10:28:34 UTC 2019


 vcl/skia/x11/gdiimpl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48ee7aa7ec01d110f7c4ed6ded9d3842ee09f600
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Thu Nov 14 11:26:58 2019 +0100
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Thu Nov 14 11:27:43 2019 +0100

    do not use Xlib for accessing something that is not an X window
    
    Change-Id: I8986064e581fdb9876068ae3b9736b9716554fb6

diff --git a/vcl/skia/x11/gdiimpl.cxx b/vcl/skia/x11/gdiimpl.cxx
index 7eb02a51169e..e679fa8dbb2d 100644
--- a/vcl/skia/x11/gdiimpl.cxx
+++ b/vcl/skia/x11/gdiimpl.cxx
@@ -96,7 +96,7 @@ void X11SkiaSalGraphicsImpl::createSurface()
 
 bool X11SkiaSalGraphicsImpl::avoidRecreateByResize() const
 {
-    if (!mSurface)
+    if (!mSurface || isOffscreen())
         return false;
     // Skia's WindowContext uses actual dimensions of the X window, which due to X11 being
     // asynchronous may be temporarily different from what VCL thinks are the dimensions.


More information about the Libreoffice-commits mailing list