diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index 9275885e66..3b179821d5 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -995,6 +995,7 @@ void SeatInterface::endPointerPinchGesture() p->d_func()->endPinchGesture(serial); } ); + d->globalPointer.gestureSurface.clear(); } void SeatInterface::cancelPointerPinchGesture() @@ -1009,6 +1010,7 @@ void SeatInterface::cancelPointerPinchGesture() p->d_func()->cancelPinchGesture(serial); } ); + d->globalPointer.gestureSurface.clear(); } void SeatInterface::keyPressed(quint32 key)