client: Reset tablet state on proximity out; quiet the warning


If !m_pending.proximitySurface, usually it's because the stylus is
leaving proximity. The "no proximity surface" warning (introduced in
222455cd643c128fa9730c9c527a7fdcadd0acfe) only makes sense if neither
applied nor pending state has a proximity service.

If we are leaving proximity, reset m_applied state as well as
m_pending state, because we don't expect any more tablet events until
after the next proximity in event. There was a bug that subsequent
proximity in events were not sent, because m_applied.proximitySurface
was still set (leftover state).

Amends 5af836aea3bb91a9f388e565415dc33b2fde4577

Pick-to: 6.8
Change-Id: I019e91eebb1958cd6c17393482cbae4c4ba9308d
Reviewed-by: David Edmundson <davidedmundson@kde.org>
commitdca848f60a468a59dcb048c95311be28eb6c7910
parent65753961efec006705c0aeccbcce3e4d075837e1
authorShawn Rutledge <shawn.rutledge@qt.io>
committerShawn Rutledge <shawn.rutledge@qt.io>
commit timeSun, 8 Sep 2024 09:44:22 +0200