~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/GetMoEv.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
XTimeCoord *XGetMotionEvents(
35
35
    register Display *dpy,
36
36
    Window w,
37
 
    Time start, 
 
37
    Time start,
38
38
    Time stop,
39
39
    int *nEvents)  /* RETURN */
40
 
{       
 
40
{
41
41
    xGetMotionEventsReply rep;
42
42
    register xGetMotionEventsReq *req;
43
43
    XTimeCoord *tc = NULL;
53
53
        SyncHandle();
54
54
        return (NULL);
55
55
        }
56
 
    
 
56
 
57
57
    if (rep.nEvents) {
58
58
        if (! (tc = (XTimeCoord *)
59
 
               Xmalloc( (unsigned) 
 
59
               Xmalloc( (unsigned)
60
60
                       (nbytes = (long) rep.nEvents * sizeof(XTimeCoord))))) {
61
61
            _XEatData (dpy, (unsigned long) nbytes);
62
62
            UnlockDisplay(dpy);