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:
parent
571b11d41c
commit
8aadfbc657
@ -907,7 +907,9 @@ void QXcbWindow::hide()
|
||||
if (QWindow *childWindow = childWindowAt(enterWindow, cursorPos))
|
||||
enterWindow = childWindow;
|
||||
const QPoint localPos = enterWindow->mapFromGlobal(cursorPos);
|
||||
QWindowSystemInterface::handleEnterEvent(enterWindow, localPos, cursorPos);
|
||||
QWindowSystemInterface::handleEnterEvent(enterWindow,
|
||||
localPos * QHighDpiScaling::factor(enterWindow),
|
||||
nativePos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user