vcl/unx/gtk3/gtkframe.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 20cc897dddb8ae7cee3c6d66e9cebba9da543c3a Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 27 15:57:17 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jul 27 20:41:58 2022 +0200
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 <caol...@redhat.com> 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)