Merge remote-tracking branch 'origin/5.12' into dev
Change-Id: I224c25d20f58723d085e4ee340744d1c7af67933
This commit is contained in:
commit
84a3f82b28
@ -453,10 +453,6 @@ void QWaylandInputDevice::Pointer::pointer_enter(uint32_t serial, struct wl_surf
|
||||
return;
|
||||
|
||||
QWaylandWindow *window = QWaylandWindow::fromWlSurface(surface);
|
||||
#if QT_CONFIG(cursor)
|
||||
window->window()->setCursor(window->window()->cursor());
|
||||
#endif
|
||||
|
||||
mFocus = window;
|
||||
mSurfacePos = QPointF(wl_fixed_to_double(sx), wl_fixed_to_double(sy));
|
||||
mGlobalPos = window->window()->mapToGlobal(mSurfacePos.toPoint());
|
||||
@ -464,6 +460,11 @@ void QWaylandInputDevice::Pointer::pointer_enter(uint32_t serial, struct wl_surf
|
||||
mParent->mSerial = serial;
|
||||
mEnterSerial = serial;
|
||||
|
||||
#if QT_CONFIG(cursor)
|
||||
// Depends on mEnterSerial being updated
|
||||
window->window()->setCursor(window->window()->cursor());
|
||||
#endif
|
||||
|
||||
QWaylandWindow *grab = QWaylandWindow::mouseGrab();
|
||||
if (!grab) {
|
||||
EnterEvent evt(mSurfacePos, mGlobalPos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user