diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-12-01 20:32:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-12-02 22:52:47 +0100 |
commit | 24db04bbe09f19a49733699e42d0e095eb417fed (patch) | |
tree | 77e5e318257d02623251b717c1b7d01b313335e3 /vcl/unx | |
parent | d606853593a737c28c23a8a9cd47c00dcc17d517 (diff) |
Related: tdf#145901 use x11 popover replacement for all non-menubutton cases
replacement from inside real popover under x11 as in autofilter case
doesn't work.
Change-Id: Ie4ba95645a8094732b9bad9829426e77375d63ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126204
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index d808d1e478c4..c993e16fc4ce 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -22084,7 +22084,7 @@ public: //under wayland a Popover will work to "escape" the parent dialog, not //so under X, so come up with this hack to use a raw GtkWindow GdkDisplay *pDisplay = gtk_widget_get_display(GTK_WIDGET(m_pPopover)); - if (DLSYM_GDK_IS_X11_DISPLAY(pDisplay) && gtk_popover_get_constrain_to(m_pPopover) == GTK_POPOVER_CONSTRAINT_NONE) + if (DLSYM_GDK_IS_X11_DISPLAY(pDisplay)) { m_pMenuHack = GTK_WINDOW(gtk_window_new(GTK_WINDOW_POPUP)); gtk_window_set_type_hint(m_pMenuHack, GDK_WINDOW_TYPE_HINT_COMBO); @@ -22136,7 +22136,7 @@ public: //under wayland a Popover will work to "escape" the parent dialog, not //so under X, so come up with this hack to use a raw GtkWindow GdkDisplay *pDisplay = gtk_widget_get_display(GTK_WIDGET(m_pPopover)); - if (DLSYM_GDK_IS_X11_DISPLAY(pDisplay) && gtk_popover_get_constrain_to(m_pPopover) == GTK_POPOVER_CONSTRAINT_NONE) + if (DLSYM_GDK_IS_X11_DISPLAY(pDisplay)) { if (!m_bMenuPoppedUp) { |