[Libreoffice-commits] core.git: vcl/unx
Maxim Monastirsky
momonasmon at gmail.com
Thu Jun 21 15:12:15 UTC 2018
vcl/unx/gtk3/gtk3gtkframe.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit eb84dcb9c0a202f4917169acdce50775778b72ec
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Thu Jun 21 17:48:49 2018 +0300
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 at gmail.com>
Tested-by: Maxim Monastirsky <momonasmon at gmail.com>
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()),
More information about the Libreoffice-commits
mailing list