xfree86 Xinput: remove still more excessive debugging
There isn't any more debugging left for input events in the XFree86 DDX.
This commit is contained in:
parent
58314756ae
commit
3ae4d25018
|
@ -644,10 +644,6 @@ xf86PostMotionEvent(DeviceIntPtr device,
|
||||||
int *valuators = NULL;
|
int *valuators = NULL;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("xf8PostMotionEvent enter: is_absolute %s\n",
|
|
||||||
is_absolute ? "yes" : "no");
|
|
||||||
#endif
|
|
||||||
if (is_absolute)
|
if (is_absolute)
|
||||||
flags = POINTER_ABSOLUTE;
|
flags = POINTER_ABSOLUTE;
|
||||||
else
|
else
|
||||||
|
@ -658,9 +654,6 @@ xf86PostMotionEvent(DeviceIntPtr device,
|
||||||
va_start(var, num_valuators);
|
va_start(var, num_valuators);
|
||||||
for (i = 0; i < num_valuators; i++) {
|
for (i = 0; i < num_valuators; i++) {
|
||||||
valuators[i] = va_arg(var, int);
|
valuators[i] = va_arg(var, int);
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("valuator %d: %d\n", i, valuators[i]);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
|
@ -699,9 +692,7 @@ xf86PostProximityEvent(DeviceIntPtr device,
|
||||||
int loop;
|
int loop;
|
||||||
Bool is_core = device->coreEvents;
|
Bool is_core = device->coreEvents;
|
||||||
|
|
||||||
#ifdef DEBUG
|
ErrorF("xf86PostProximityEvent: no-op event called\n");
|
||||||
ErrorF("xf86PostProximityEvent enter\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
DBG(5, ErrorF("xf86PostProximityEvent BEGIN 0x%x(%s) prox=%s is_core=%s is_absolute=%s\n",
|
DBG(5, ErrorF("xf86PostProximityEvent BEGIN 0x%x(%s) prox=%s is_core=%s is_absolute=%s\n",
|
||||||
|
@ -794,20 +785,10 @@ xf86PostButtonEvent(DeviceIntPtr device,
|
||||||
int *valuators = NULL;
|
int *valuators = NULL;
|
||||||
int i = 0, nevents = 0;
|
int i = 0, nevents = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("xf86PostButtonEvent BEGIN 0x%x(%s) button=%d down=%s is_absolute=%s\n",
|
|
||||||
device, device->name, button,
|
|
||||||
is_down ? "True" : "False",
|
|
||||||
is_absolute ? "True" : "False");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
valuators = xcalloc(sizeof(int), num_valuators);
|
valuators = xcalloc(sizeof(int), num_valuators);
|
||||||
|
|
||||||
va_start(var, num_valuators);
|
va_start(var, num_valuators);
|
||||||
for (i = 0; i < num_valuators; i++) {
|
for (i = 0; i < num_valuators; i++) {
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("valuator %d: %d\n", i, valuators[i]);
|
|
||||||
#endif
|
|
||||||
valuators[i] = va_arg(var, int);
|
valuators[i] = va_arg(var, int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -839,7 +820,7 @@ xf86PostKeyEvent(DeviceIntPtr device,
|
||||||
int i = 0, nevents = 0, *valuators = NULL;
|
int i = 0, nevents = 0, *valuators = NULL;
|
||||||
|
|
||||||
/* instil confidence in the user */
|
/* instil confidence in the user */
|
||||||
ErrorF("this function has never been tested properly. if things go quite "
|
DebugF("this function has never been tested properly. if things go quite "
|
||||||
"badly south after this message, then xf86PostKeyEvent is "
|
"badly south after this message, then xf86PostKeyEvent is "
|
||||||
"broken.\n");
|
"broken.\n");
|
||||||
|
|
||||||
|
@ -848,8 +829,6 @@ xf86PostKeyEvent(DeviceIntPtr device,
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
FatalError("Couldn't allocate event store\n");
|
FatalError("Couldn't allocate event store\n");
|
||||||
|
|
||||||
/* the spec says that dkp/dkr events should only get valuators in
|
|
||||||
* absolute mode. the spec knows all. BOW BEFORE etc. */
|
|
||||||
if (is_absolute) {
|
if (is_absolute) {
|
||||||
valuators = xcalloc(sizeof(int), num_valuators);
|
valuators = xcalloc(sizeof(int), num_valuators);
|
||||||
va_start(var, num_valuators);
|
va_start(var, num_valuators);
|
||||||
|
@ -879,11 +858,6 @@ xf86PostKeyboardEvent(DeviceIntPtr device,
|
||||||
{
|
{
|
||||||
int nevents = 0, i = 0;
|
int nevents = 0, i = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
ErrorF("xf86PKE enter: keycode %d is %s, device %d\n", key_code,
|
|
||||||
is_down ? "down" : "up", device->id);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
xf86Events = (xEvent *)xcalloc(sizeof(xEvent), GetMaximumEventsNum());
|
xf86Events = (xEvent *)xcalloc(sizeof(xEvent), GetMaximumEventsNum());
|
||||||
if (!xf86Events)
|
if (!xf86Events)
|
||||||
|
|
Loading…
Reference in New Issue