[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 21 13:07:21 UTC 2020
vcl/unx/gtk3/gtk3gtkinst.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit b48d9aeb848c6e9a4d94f84c7fe636319fcfb78f
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 20 17:24:39 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 21 15:06:43 2020 +0200
don't trigger resize if size didn't change
Change-Id: I504d1e3019fa2eb5963b522806526b20e5b4e0bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104568
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 67dd9751053b..9db6e5951917 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -13415,6 +13415,12 @@ private:
}
virtual void signal_size_allocate(guint nWidth, guint nHeight) override
{
+ Size aNewSize(nWidth, nHeight);
+ if (m_pSurface && aNewSize == m_xDevice->GetOutputSizePixel())
+ {
+ // unchanged
+ return;
+ }
m_xDevice->SetOutputSizePixel(Size(nWidth, nHeight));
m_pSurface = get_underlying_cairo_surface(*m_xDevice);
GtkInstanceWidget::signal_size_allocate(nWidth, nHeight);
More information about the Libreoffice-commits
mailing list