diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-16 21:37:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-17 12:06:31 +0200 |
commit | 17971fbdc89f7218c6bf5c3c88796927c71856bb (patch) | |
tree | ae4cf08326d37289811a9f675629ac670ef668ed /vcl | |
parent | b2c9b64aa146520cd8098e2ffd630cc453325473 (diff) |
tdf#130449 allow gdk_window_move_to_rect to try GDK_ANCHOR_SLIDE
as well as GDK_ANCHOR_FLIP if the window placement will put part of the
floating window off screen
Change-Id: I6b76df371048865cb4b1befea5ba34b38336944e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96495
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index d372391fec2a..09c99caf81fd 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2983,7 +2983,7 @@ void GtkSalFrame::signalRealize(GtkWidget*, gpointer frame) static_cast<int>(aFloatRect.GetWidth()), static_cast<int>(aFloatRect.GetHeight())}; GdkWindow* gdkWindow = gtk_widget_get_window(pThis->m_pWindow); - window_move_to_rect(gdkWindow, &rect, rect_anchor, menu_anchor, GDK_ANCHOR_FLIP, 0, 0); + window_move_to_rect(gdkWindow, &rect, rect_anchor, menu_anchor, static_cast<GdkAnchorHints>(GDK_ANCHOR_FLIP | GDK_ANCHOR_SLIDE), 0, 0); } } |