vcl/unx/gtk3/gtkobject.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 8c9d8521677f63e22c79eff7399b9f76c06e8847
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Jan 7 20:29:59 2022 +0000
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Sun Jan 9 17:44:00 2022 +0100
tdf#146641 allocations attempted while hidden are discarded by gtk
Change-Id: I46288cf4c106e2763feba298f1c44dbbf6c85581
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128080
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
diff --git a/vcl/unx/gtk3/gtkobject.cxx b/vcl/unx/gtk3/gtkobject.cxx
index d712dae3c8bb..6f8fffd3f0a0 100644
--- a/vcl/unx/gtk3/gtkobject.cxx
+++ b/vcl/unx/gtk3/gtkobject.cxx
@@ -496,7 +496,12 @@ void GtkSalObjectWidgetClip::Show( bool bVisible )
if (bVisible == bCurrentVis)
return;
if( bVisible )
+ {
gtk_widget_show(m_pScrolledWindow);
+ // tdf#146641 allocations attempted while hidden are discarded by gtk,
+ // so on transition to visible ApplyClipRegion needs to be called
+ ApplyClipRegion();
+ }
else
{
// on hiding the widget, if a child has focus gtk will want to move
the focus out of the widget