From 77e724585f6c53feb55475b94d8cfcb6acf1159b Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 20 Oct 2006 00:44:46 +0300 Subject: [PATCH] minor formatting fixes --- dix/getevents.c | 5 ++--- mi/mieq.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dix/getevents.c b/dix/getevents.c index 42b9df9d2..c6a35ba21 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -1,6 +1,6 @@ /* * Copyright © 2006 Nokia Corporation - * + * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and that @@ -121,7 +121,7 @@ GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type, if (!events) return 0; - + if (type != KeyPress && type != KeyRelease) return 0; @@ -179,7 +179,6 @@ GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type, events += numEvents; } } - ms = GetTimeInMillis(); diff --git a/mi/mieq.c b/mi/mieq.c index 0ac68d6e8..63cd6e1cd 100644 --- a/mi/mieq.c +++ b/mi/mieq.c @@ -113,7 +113,7 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e) ErrorF("mieqEnqueue: more than six valuator events; dropping.\n"); return; } - if (oldtail == miEventQueue.head || + if (oldtail == miEventQueue.head || !(lastkbp->type == DeviceMotionNotify || lastkbp->type == DeviceButtonPress || lastkbp->type == DeviceButtonRelease) ||