QGuiAppPriv: don't clear target and window for TouchCancel
It's nice not to leave garbage in QPointingDevicePrivate::activePoints between events; on the other hand, this garbage doesn't matter, because every press event sets the target and window independently, without caring what was stored there from before. But it was wrong to clear it before we've even delivered the TouchCancel event. Pick-to: 6.0 Pick-to: 6.0.0 Change-Id: I924039a7c7a8ed75f420d1837c63dc19d3cc98b6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
291e8e729e
commit
45a65cbeb2
|
|
@ -2816,8 +2816,6 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
|
|||
QWindow *w = mut.window();
|
||||
if (w)
|
||||
windowsNeedingCancel.insert(w);
|
||||
mut.setWindow(nullptr);
|
||||
mut.setTarget(nullptr);
|
||||
}
|
||||
|
||||
for (QSet<QWindow *>::const_iterator winIt = windowsNeedingCancel.constBegin(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue