diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-11-28 14:12:23 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-07 15:24:56 +1000 |
commit | a789e3dcb99aba67041c65d4527c607afbc64f2b (patch) | |
tree | 1d1ad52a360f24ae3fb021b56417cbd382ecaf0e | |
parent | 510cb4ce5db5029f36f09de5f2de0d576d501010 (diff) |
s/notify//gi
-rw-r--r-- | include/X11/extensions/XInput2.h | 2 | ||||
-rw-r--r-- | src/XExtInt.c | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index ffefe1c..0d1fe66 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -351,7 +351,7 @@ typedef struct { int dt; PointerBarrier barrier; BarrierEventID event_id; -} XIBarrierNotifyEvent; +} XIBarrierEvent; _XFUNCPROTOBEGIN diff --git a/src/XExtInt.c b/src/XExtInt.c index b804822..a0d2d74 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -125,8 +125,8 @@ static int wireToTouchOwnershipEvent(xXITouchOwnershipEvent *in, XGenericEventCookie *cookie); static int -wireToBarrierNotifyEvent(xXIBarrierNotifyEvent *in, - XGenericEventCookie *cookie); +wireToBarrierEvent(xXIBarrierEvent *in, + XGenericEventCookie *cookie); static /* const */ XEvent emptyevent; @@ -1025,11 +1025,11 @@ XInputWireToCookie( break; } return ENQUEUE_EVENT; - case XI_BarrierHitNotify: - case XI_BarrierPointerReleasedNotify: - case XI_BarrierLeaveNotify: + case XI_BarrierHit: + case XI_BarrierPointerReleased: + case XI_BarrierLeave: *cookie = *(XGenericEventCookie*)save; - if (!wireToBarrierNotifyEvent((xXIBarrierNotifyEvent*)event, cookie)) + if (!wireToBarrierEvent((xXIBarrierEvent*)event, cookie)) { printf("XInputWireToCookie: CONVERSION FAILURE! evtype=%d\n", ge->evtype); @@ -1418,14 +1418,14 @@ copyRawEvent(XGenericEventCookie *cookie_in, } static Bool -copyBarrierNotifyEvent(XGenericEventCookie *in_cookie, - XGenericEventCookie *out_cookie) +copyBarrierEvent(XGenericEventCookie *in_cookie, + XGenericEventCookie *out_cookie) { - XIBarrierNotifyEvent *in, *out; + XIBarrierEvent *in, *out; in = in_cookie->data; - out = out_cookie->data = calloc(1, sizeof(XIBarrierNotifyEvent)); + out = out_cookie->data = calloc(1, sizeof(XIBarrierEvent)); if (!out) return False; *out = *in; @@ -1487,10 +1487,10 @@ XInputCopyCookie(Display *dpy, XGenericEventCookie *in, XGenericEventCookie *out case XI_RawMotion: ret = copyRawEvent(in, out); break; - case XI_BarrierHitNotify: - case XI_BarrierPointerReleasedNotify: - case XI_BarrierLeaveNotify: - ret = copyBarrierNotifyEvent(in, out); + case XI_BarrierHit: + case XI_BarrierPointerReleased: + case XI_BarrierLeave: + ret = copyBarrierEvent(in, out); break; default: printf("XInputCopyCookie: unknown evtype %d\n", in->evtype); @@ -1995,11 +1995,11 @@ wireToTouchOwnershipEvent(xXITouchOwnershipEvent *in, #define FP3232_TO_DOUBLE(x) ((double) (x).integral + (x).frac / (1 << 16) / (1 << 16)) static int -wireToBarrierNotifyEvent(xXIBarrierNotifyEvent *in, XGenericEventCookie *cookie) +wireToBarrierEvent(xXIBarrierEvent *in, XGenericEventCookie *cookie) { - XIBarrierNotifyEvent *out = malloc(sizeof(XIBarrierNotifyEvent)); + XIBarrierEvent *out = malloc(sizeof(XIBarrierEvent)); - out = cookie->data = calloc(1, sizeof(XIBarrierNotifyEvent)); + out = cookie->data = calloc(1, sizeof(XIBarrierEvent)); out->display = cookie->display; out->type = in->type; |