summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2018-06-21 17:48:49 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2018-06-21 17:11:49 +0200
commiteb84dcb9c0a202f4917169acdce50775778b72ec (patch)
tree3a363c6c3e5504041c17497650fdc175e68cea56
parent39180f706f0c30771d55e065fca2e36d2c7bb7c7 (diff)
Fix lists position in dialogs
Regression of 2bfc4cefc21ab18e9ff7cc5fdc743bcc856d103c ("Correctly mirror autofilter in rtl ui, tdf#117175 related") If a window has a parent, it doesn't necessarily mean it's not a top level. Change-Id: I75a27d19284be6c29de7705af20ddccfcf69491d Reviewed-on: https://gerrit.libreoffice.org/56250 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 7e07f0efced8..6a443526e8db 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -3057,7 +3057,7 @@ void GtkSalFrame::signalRealize(GtkWidget*, gpointer frame)
}
tools::Rectangle aFloatRect = FloatingWindow::ImplConvertToAbsPos(pVclParent, pThis->m_aFloatRect);
- if (pThis->m_pParent->m_pParent)
+ if (gdk_window_get_window_type(widget_get_window(pThis->m_pParent->m_pWindow)) != GDK_WINDOW_TOPLEVEL)
aFloatRect.Move(-pThis->m_pParent->maGeometry.nX, -pThis->m_pParent->maGeometry.nY);
GdkRectangle rect {static_cast<int>(aFloatRect.Left()), static_cast<int>(aFloatRect.Top()),