diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 17:47:06 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 17:47:06 +1030 |
commit | 0e6331a2c8494cd24d75ab80443f9f071be47334 (patch) | |
tree | 53d6ecf6bc970a101606622079bd8a224928f63d /src/XExtInt.c | |
parent | a7f53f26ac83257f594058c484ecd19e009e142c (diff) |
Remove PKPairingChangedEvent, replace with DeviceHierarchyChangedNotify event.
Remove leftovers of RandomStringEvent as well.
Diffstat (limited to 'src/XExtInt.c')
-rw-r--r-- | src/XExtInt.c | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index 69d37af..64ae923 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -748,36 +748,16 @@ XInputWireToEvent(dpy, re, event) { switch(ge->evtype) { - case XI_PointerKeyboardPairingChangedNotify: + case XI_DeviceHierarchyChangedNotify: { - XPointerKeyboardPairingChangedNotifyEvent* pkc_event = - (XPointerKeyboardPairingChangedNotifyEvent*)save; - pairingChangedNotify* pkc_wire = - (pairingChangedNotify*)event; - - pkc_event->extension = pkc_wire->extension; - pkc_event->evtype = pkc_wire->evtype; - pkc_event->pointerid = pkc_wire->pointer; - pkc_event->keyboardid = pkc_wire->keyboard; - pkc_event->time = pkc_wire->time; - *re = *save; - return ENQUEUE_EVENT; - } - case XI_RandomStringEvent: - { - XRandomStringEvent* xrs_event = - (XRandomStringEvent*)save; - randomStringEvent* xrs_wire = - (randomStringEvent*)event; - - xrs_event->extension = xrs_wire->extension; - xrs_event->evtype = xrs_wire->evtype; - - xrs_event->string = (char*)calloc((xrs_wire->slen + - 1), sizeof(char)); - memcpy(xrs_event->string, - &xrs_wire[1], - xrs_wire->slen); + XDeviceHierarchyChangedEvent* dhc_event = + (XDeviceHierarchyChangedEvent*)save; + deviceHierarchyChangedEvent* dhc_wire = + (deviceHierarchyChangedEvent*)event; + + dhc_event->extension = dhc_wire->extension; + dhc_event->evtype = dhc_wire->evtype; + dhc_event->time = dhc_wire->time; *re = *save; return ENQUEUE_EVENT; } |