Fix QXcbWindow::mapFrom/ToGlobal()

Call the base class implementations to avoid returning an unmapped
values for non-embedded windows.

Task-number: QTBUG-55251
Change-Id: Ib05fd530498dd4d72d3d4ef37caf4e2f0ebcd2e4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
J-P Nurmi 2018-02-02 08:06:04 +01:00
parent 756ebcd93a
commit 57f4521c99

View File

@ -2157,7 +2157,7 @@ bool QXcbWindow::isEmbedded() const
QPoint QXcbWindow::mapToGlobal(const QPoint &pos) const
{
if (!m_embedded)
return pos;
return QPlatformWindow::mapToGlobal(pos);
QPoint ret;
xcb_translate_coordinates_cookie_t cookie =
@ -2177,7 +2177,7 @@ QPoint QXcbWindow::mapToGlobal(const QPoint &pos) const
QPoint QXcbWindow::mapFromGlobal(const QPoint &pos) const
{
if (!m_embedded)
return pos;
return QPlatformWindow::mapFromGlobal(pos);
QPoint ret;
xcb_translate_coordinates_cookie_t cookie =