vcl/unx/gtk3/gtkinst.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 52d199b364bf65168e5e43b039e6036b87d37403 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Nov 19 09:56:01 2021 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Nov 19 14:58:40 2021 +0100 gtk4: GtkPopover parent must be set before its shown Change-Id: I6184422b92d3629f31141215bed588400b30289c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125542 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 3791ef5709a7..fbf98d830c11 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -21898,7 +21898,9 @@ public: GdkRectangle aRect; pWidget = getPopupRect(pWidget, rRect, aRect); -#if !GTK_CHECK_VERSION(4, 0, 0) +#if GTK_CHECK_VERSION(4, 0, 0) + gtk_widget_set_parent(GTK_WIDGET(m_pPopover), pWidget); +#else gtk_popover_set_relative_to(m_pPopover, pWidget); #endif gtk_popover_set_pointing_to(m_pPopover, &aRect);
