mi: fix indentation

mieq.c looks indented-wise now. Let's see how long it will take to someone
mess it again.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
This commit is contained in:
Tiago Vignatti 2009-08-08 20:18:10 +03:00
parent f9a2fff224
commit 93d9646c71

View File

@ -159,26 +159,26 @@ mieqEnqueue(DeviceIntPtr pDev, InternalEvent *e)
if (isMotion && isMotion == miEventQueue.lastMotion && if (isMotion && isMotion == miEventQueue.lastMotion &&
oldtail != miEventQueue.head) { oldtail != miEventQueue.head) {
oldtail = (oldtail - 1) % QUEUE_SIZE; oldtail = (oldtail - 1) % QUEUE_SIZE;
} }
else { else {
static int stuck = 0; static int stuck = 0;
/* Toss events which come in late. Usually this means your server's /* Toss events which come in late. Usually this means your server's
* stuck in an infinite loop somewhere, but SIGIO is still getting * stuck in an infinite loop somewhere, but SIGIO is still getting
* handled. */ * handled. */
if (((oldtail + 1) % QUEUE_SIZE) == miEventQueue.head) { if (((oldtail + 1) % QUEUE_SIZE) == miEventQueue.head) {
if (!stuck) { if (!stuck) {
ErrorF("[mi] EQ overflowing. The server is probably stuck " ErrorF("[mi] EQ overflowing. The server is probably stuck "
"in an infinite loop.\n"); "in an infinite loop.\n");
xorg_backtrace(); xorg_backtrace();
stuck = 1; stuck = 1;
} }
#ifdef XQUARTZ #ifdef XQUARTZ
pthread_mutex_unlock(&miEventQueueMutex); pthread_mutex_unlock(&miEventQueueMutex);
#endif #endif
return; return;
} }
stuck = 0; stuck = 0;
} }
evlen = e->any.length; evlen = e->any.length;
@ -225,7 +225,7 @@ mieqSwitchScreen(DeviceIntPtr pDev, ScreenPtr pScreen, Bool fromDIX)
#endif #endif
EnqueueScreen(pDev) = pScreen; EnqueueScreen(pDev) = pScreen;
if (fromDIX) if (fromDIX)
DequeueScreen(pDev) = pScreen; DequeueScreen(pDev) = pScreen;
#ifdef XQUARTZ #ifdef XQUARTZ
pthread_mutex_unlock(&miEventQueueMutex); pthread_mutex_unlock(&miEventQueueMutex);
#endif #endif
@ -267,8 +267,8 @@ ChangeDeviceID(DeviceIntPtr dev, InternalEvent* event)
event->device.deviceid = dev->id; event->device.deviceid = dev->id;
break; break;
#if XFreeXDGA #if XFreeXDGA
case ET_DGAEvent: case ET_DGAEvent:
break; break;
#endif #endif
case ET_RawKeyPress: case ET_RawKeyPress:
case ET_RawKeyRelease: case ET_RawKeyRelease: