summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-07-27 15:57:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-07-27 20:41:58 +0200
commit20cc897dddb8ae7cee3c6d66e9cebba9da543c3a (patch)
treecc3450c5f665eac17dcd0504fea87d4ab790cd7f
parent3172472aa749defc68f51e3436a089f49a496e8b (diff)
gtk4: for gtk4 set the size of both layers of the overlay
the size request for the overlay comes from its main child, the drawing area in this case Change-Id: If814aaa1d1fc38b331b18f5e9685c405d4f0d1b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137509 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkframe.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index 1341c759a029..b1a00fe23129 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -786,6 +786,9 @@ void GtkSalFrame::moveWindow( tools::Long nX, tools::Long nY )
void GtkSalFrame::widget_set_size_request(tools::Long nWidth, tools::Long nHeight)
{
gtk_widget_set_size_request(GTK_WIDGET(m_pFixedContainer), nWidth, nHeight );
+#if GTK_CHECK_VERSION(4,0,0)
+ gtk_widget_set_size_request(GTK_WIDGET(m_pDrawingArea), nWidth, nHeight );
+#endif
}
void GtkSalFrame::window_resize(tools::Long nWidth, tools::Long nHeight)