xserver/dix
Chase Douglas f9e6858d5c Use event time instead of CurrentTime for grab times
When {XI,X,}AllowEvents is called, the timestamp is compared against the
grab time to ensure that the request pertains to the current grab in the
server. While many clients may use CurrentTime (client-side), the
timestamp of the event causing the grab is also valid.

This change ensures that the server's notion of the grab time is the
time of the event that activated the grab rather than the time that the
grab is actually activated.

This bug was exposed through nested touch then pointer grabs.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-13 09:04:49 +10:00
..
.gitignore dix and os: gitignore dix.O and os.O 2011-09-23 17:14:47 -07:00
BuiltInAtoms R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
Makefile.am input: add a TouchClassRec to the devices 2011-12-19 09:08:36 +10:00
Xserver-dtrace.h.in Sun's copyrights now belong to Oracle 2010-12-07 11:10:35 -08:00
Xserver.d Sun's copyrights now belong to Oracle 2010-12-07 11:10:35 -08:00
atom.c Convert some malloc + strncpy pairs into strndup calls 2011-11-23 12:15:05 -08:00
buildatoms XFree86 4.3.0.1 2003-11-14 16:49:22 +00:00
colormap.c Revert "Bug #6924: Restore the ABI for DrawableRec and ColormapRec to the state" 2011-09-19 22:31:21 -07:00
cursor.c CheckForEmptyMask does not need to declare int n twice 2011-12-12 17:03:08 -08:00
devices.c input: add a TouchClassRec to the devices 2011-12-19 09:08:36 +10:00
dispatch.c Revert "dix: Extend initial connection handshake for forwarding proxies" 2012-01-12 12:09:55 -08:00
dispatch.h xserver: delete pervasively use of DISPATCH_PROC 2010-09-28 16:45:05 +03:00
dixfonts.c dixfonts: Don't overwrite local c variable until new_closure is safely initialized. 2011-10-04 19:43:52 -07:00
dixutils.c dix: Return BadWindow rather than BadMatch from dixLookupWindow 2012-01-09 13:09:48 -08:00
enterleave.c dix: on PointerRootWin send a FocusIn to the sprite window too 2012-01-06 08:05:59 +10:00
enterleave.h dix: call SetFocusOut and LeaveWindow when disabling a device. 2009-08-03 10:11:48 +10:00
eventconvert.c dix: Set XITouchEmulatingPointer on events from the touch sequence emulating pointer events 2012-01-06 14:03:04 +10:00
events.c Use event time instead of CurrentTime for grab times 2012-01-13 09:04:49 +10:00
extension.c dix: add a MAXEVENTS define for the number of core + extension events 2011-12-13 13:24:57 +10:00
ffs.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
gc.c Un-export CreateScratchGC now that nothing external uses it. 2010-09-13 15:58:08 -07:00
getevents.c dix: fix wrong condition checking for attached slave (#44003) 2012-01-06 08:06:05 +10:00
globals.c dix: delete logo hack screen saver 2010-11-11 23:20:35 +02:00
glyphcurs.c Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
grabs.c dix: Remove touch grabs if the grab disappears 2011-12-21 14:16:36 +10:00
initatoms.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
inpututils.c dix: button state must show the logical buttons, not physical buttons 2011-12-21 14:16:36 +10:00
main.c Terminate the log with one last message. 2011-07-27 09:31:02 +10:00
pixmap.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
privates.c Add fence sync driver interface 2010-12-06 19:15:26 -08:00
property.c Revert "dix: don't return BadMatch from GetProperty (#23562)" 2012-01-09 13:09:48 -08:00
protocol.txt Add DRI2 requests to protocol.txt 2009-08-28 23:29:05 -04:00
ptrveloc.c dix: move #if statement to stop compiler warning 2011-10-25 14:06:41 +10:00
region.c Delete RegionClipSpans() 2011-03-01 07:58:06 -05:00
registry.c constify strings in resource name registry 2011-12-12 17:03:08 -08:00
resource.c constify strings in resource name registry 2011-12-12 17:03:08 -08:00
selection.c Fix property and selection devPrivate allocation. 2010-09-10 11:44:12 -07:00
swaprep.c Cast char* buffers to swap functions 2011-09-21 17:14:44 -04:00
swapreq.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
tables.c dix: add a MAXEVENTS define for the number of core + extension events 2011-12-13 13:24:57 +10:00
touch.c dix: Remove touch grabs if the grab disappears 2011-12-21 14:16:36 +10:00
window.c dix: when a window disappears, remove it from the touch sprite trace 2011-12-21 12:38:35 +10:00