vcl/unx/gtk3/gtkinst.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 40d2324081941fb5d093ea72d5c459cacc7028bc
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Nov 30 14:23:37 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Nov 30 17:02:36 2021 +0100

    gtk[3|4] allow anything that would enable positioning onscreen
    
    Change-Id: I68a96c4ae860c705108f4aaaf23e4bd05badf849
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126122
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index b10a051d963b..f9546a5ebe43 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -9797,23 +9797,20 @@ bool show_menu_newer_gtk(GtkWidget* pComboBox, 
GtkWindow* pMenu, const GdkRectan
 
     GdkGravity rect_anchor;
     GdkGravity menu_anchor;
-    GdkAnchorHints anchor_hints;
 
     if (ePlace == weld::Placement::Under)
     {
         rect_anchor = !bSwapForRTL ? GDK_GRAVITY_SOUTH_WEST : 
GDK_GRAVITY_SOUTH_EAST;
         menu_anchor = !bSwapForRTL ? GDK_GRAVITY_NORTH_WEST : 
GDK_GRAVITY_NORTH_EAST;
-        anchor_hints = static_cast<GdkAnchorHints>(GDK_ANCHOR_FLIP_Y | 
GDK_ANCHOR_RESIZE_Y |
-                                                   GDK_ANCHOR_SLIDE_X | 
GDK_ANCHOR_RESIZE_X);
     }
     else
     {
         rect_anchor = !bSwapForRTL ? GDK_GRAVITY_NORTH_EAST : 
GDK_GRAVITY_NORTH_WEST;
         menu_anchor = !bSwapForRTL ? GDK_GRAVITY_NORTH_WEST : 
GDK_GRAVITY_NORTH_EAST;
-        anchor_hints = static_cast<GdkAnchorHints>(GDK_ANCHOR_FLIP_X | 
GDK_ANCHOR_RESIZE_Y |
-                                                   GDK_ANCHOR_SLIDE_Y | 
GDK_ANCHOR_RESIZE_X);
     }
 
+    GdkAnchorHints anchor_hints = static_cast<GdkAnchorHints>(GDK_ANCHOR_FLIP 
| GDK_ANCHOR_SLIDE | GDK_ANCHOR_RESIZE);
+
     GdkRectangle rect {x, y, rAnchor.width, rAnchor.height};
     GdkSurface* toplevel = widget_get_surface(GTK_WIDGET(pMenu));
 

Reply via email to