dix: only reject active grabs on ungrab and do it before actually ungrabbing
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 26 Nov 2012 02:23:54 +0000 (12:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 12 Dec 2012 07:24:56 +0000 (17:24 +1000)
commitbc1f90a615018c05994fae3e678dd2341256cd82
treea3bd09d80b5884ae131ae7235636ca62b2cb900c
parent146f48c2934fc85ec095496da5c8f0102bc7f5b5
dix: only reject active grabs on ungrab and do it before actually ungrabbing

An active grab ungrabbing is the same as rejecting the grab, since the
client is no longer interested in those events. So reject any touch grab,
but do so before actually deactivating since we're interested in the
TouchEnd for the current grabbing client.

A passive grab otoh is _not_ like rejecting a grab, since it deactivates
automatically when the touch ends.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
dix/events.c