xcb: Convert synthetic mouse enter event position to native pixels

Mouse position is converted from native pixels later, so we must
provide native pixels for "QWindowSystemInterface::handleEnterEvent".

Amends 7091be1b79

Task-number: QTBUG-63865
Change-Id: I813c171f2fc1d321af702ac30eb5f2e4232e97c4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Błażej Szczygieł 2017-10-19 00:00:39 +02:00
parent 571b11d41c
commit 8aadfbc657

View File

@ -907,7 +907,9 @@ void QXcbWindow::hide()
if (QWindow *childWindow = childWindowAt(enterWindow, cursorPos)) if (QWindow *childWindow = childWindowAt(enterWindow, cursorPos))
enterWindow = childWindow; enterWindow = childWindow;
const QPoint localPos = enterWindow->mapFromGlobal(cursorPos); const QPoint localPos = enterWindow->mapFromGlobal(cursorPos);
QWindowSystemInterface::handleEnterEvent(enterWindow, localPos, cursorPos); QWindowSystemInterface::handleEnterEvent(enterWindow,
localPos * QHighDpiScaling::factor(enterWindow),
nativePos);
} }
} }
} }