diff options
author | Liang Qi <liang.qi@qt.io> | 2019-08-13 09:20:59 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-08-13 09:20:59 +0200 |
commit | 0f76c0655260225a806abe46c8f9f33a571df15f (patch) | |
tree | b1ec15232559fa20c36198ee045a4090cd3a4af1 /src/client/qwaylandinputdevice.cpp | |
parent | 52b6560708ebcfeeaebdf2b43f368c610aa905a4 (diff) | |
parent | ca9be5cab503d85831653d6c4bc9c59bd0f6ad57 (diff) | |
download | qtwayland-0f76c0655260225a806abe46c8f9f33a571df15f.tar.gz |
Merge remote-tracking branch 'origin/5.13' into dev
Conflicts:
src/client/qwaylandinputdevice.cpp
Change-Id: I20fb102162351b714855258175ed00437e55f072
Diffstat (limited to 'src/client/qwaylandinputdevice.cpp')
-rw-r--r-- | src/client/qwaylandinputdevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp index 19e36ccb..8c794dda 100644 --- a/src/client/qwaylandinputdevice.cpp +++ b/src/client/qwaylandinputdevice.cpp @@ -602,7 +602,7 @@ void QWaylandInputDevice::Pointer::pointer_enter(uint32_t serial, struct wl_surf invalidateFocus(); } mFocus = window->waylandSurface(); - connect(mFocus, &QObject::destroyed, this, &Pointer::handleFocusDestroyed); + connect(mFocus.data(), &QObject::destroyed, this, &Pointer::handleFocusDestroyed); mSurfacePos = QPointF(wl_fixed_to_double(sx), wl_fixed_to_double(sy)); mGlobalPos = window->window()->mapToGlobal(mSurfacePos.toPoint()); @@ -774,7 +774,7 @@ void QWaylandInputDevice::Pointer::pointer_button(uint32_t serial, uint32_t time void QWaylandInputDevice::Pointer::invalidateFocus() { - disconnect(mFocus, &QObject::destroyed, this, &Pointer::handleFocusDestroyed); + disconnect(mFocus.data(), &QObject::destroyed, this, &Pointer::handleFocusDestroyed); mFocus = nullptr; mEnterSerial = 0; } |