diff options
-rw-r--r-- | vcl/unx/gtk3/gtkobject.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkobject.cxx b/vcl/unx/gtk3/gtkobject.cxx index fbe5a7c39a75..42da4f6f9136 100644 --- a/vcl/unx/gtk3/gtkobject.cxx +++ b/vcl/unx/gtk3/gtkobject.cxx @@ -491,7 +491,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 |