aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Gilg <[email protected]>2018-12-13 11:06:08 +0100
committerRoman Gilg <[email protected]>2018-12-13 11:06:08 +0100
commitdd55a59d8144a158941bdffb6be8b755bb712c54 (patch)
treeb761ff613091573cf5f62d22ad5464d1d85b4b86
parent05ca6c97f83bdfa2028c498f071634558f2acb6c (diff)
Leave decoration on touch up only once
With 05ca6c97f83b removing all touch points always induces an at surface change to null. But the decoration leave event is already sent in the decoration input filter. Do not send it again in the cleanup function. This makes the decoration input test pass again. Reviewed by David Edmundson as part of review of 05ca6c97f83b.
-rw-r--r--touch_input.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/touch_input.cpp b/touch_input.cpp
index f9259ca..0c86fba 100644
--- a/touch_input.cpp
+++ b/touch_input.cpp
@@ -142,13 +142,10 @@ void TouchInputRedirection::cleanupInternalWindow(QWindow *old, QWindow *now)
void TouchInputRedirection::cleanupDecoration(Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now)
{
+ Q_UNUSED(old);
Q_UNUSED(now);
- if (old) {
- // send leave event to old decoration
- QHoverEvent event(QEvent::HoverLeave, QPointF(), QPointF());
- QCoreApplication::instance()->sendEvent(old->decoration(), &event);
- }
+ // nothing to do
}
void TouchInputRedirection::insertId(quint32 internalId, qint32 kwaylandId)