From 41710257257939b181a1615937610550b40621b9 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 8 Nov 2006 16:19:58 +0200 Subject: DevicePresenceNotify: remove verbosity, fill out all fields Don't throw a printf every time we get a DPN, and fill in all the fields when copying the structure. --- src/XExtInt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/XExtInt.c b/src/XExtInt.c index b7297dc..427e406 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -681,12 +681,12 @@ XInputWireToEvent(dpy, re, event) XDevicePresenceNotifyEvent *ev = (XDevicePresenceNotifyEvent *) re; devicePresenceNotify *ev2 = (devicePresenceNotify *) event; - fprintf(stderr, "got DevicePresenceNotify event (reltype=%d)\n", - reltype); - *ev = *(XDevicePresenceNotifyEvent *) save; ev->window = 0; ev->time = ev2->time; + ev->devchange = ev2->devchange; + ev->deviceid = ev2->deviceid; + ev->control = ev2->control; return (ENQUEUE_EVENT); } break; -- cgit v1.2.3