Fix crash in PointerInterface after PointerInterface got destroyed

Connection to lambda was not bound to this.
This commit is contained in:
Martin Gräßlin 2014-11-27 13:59:31 +01:00
parent 78486bb506
commit 91fa946e30

View file

@ -65,7 +65,7 @@ const struct wl_pointer_interface PointerInterface::Private::s_interface = {
PointerInterface::PointerInterface(SeatInterface *parent, wl_resource *parentResource)
: Resource(new Private(parent, parentResource, this), parent)
{
connect(parent, &SeatInterface::pointerPosChanged, [this] {
connect(parent, &SeatInterface::pointerPosChanged, this, [this] {
Q_D();
if (d->focusedSurface) {
const QPointF pos = d->seat->pointerPos() - d->seat->focusedPointerSurfacePosition();