mi: Actually, we don't need to lock at all in mieqProcessInputEvents...

(cherry picked from commit 3b55803615)
This commit is contained in:
Jeremy Huddleston 2008-10-23 16:25:31 -07:00
parent f285130dff
commit 935ab4262a

View file

@ -236,10 +236,6 @@ mieqProcessInputEvents(void)
int x = 0, y = 0;
DeviceIntPtr dev = NULL;
#ifdef XQUARTZ
pthread_mutex_lock(&miEventQueueMutex);
#endif
while (miEventQueue.head != miEventQueue.tail) {
if (screenIsSaved == SCREEN_SAVER_ON)
dixSaveScreens (serverClient, SCREEN_SAVER_OFF, ScreenSaverReset);
@ -254,10 +250,6 @@ mieqProcessInputEvents(void)
memcpy(&e, &miEventQueue.events[miEventQueue.head], sizeof(EventRec));
miEventQueue.head = (miEventQueue.head + 1) % QUEUE_SIZE;
#ifdef XQUARTZ
pthread_mutex_unlock(&miEventQueueMutex);
#endif
if (miEventQueue.handlers[e.event[0].u.u.type]) {
/* If someone's registered a custom event handler, let them
* steal it. */