mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-23 07:00:27 +01:00
mi: Actually, we don't need to lock at all in mieqProcessInputEvents...
(cherry picked from commit 3b55803615)
This commit is contained in:
parent
f285130dff
commit
935ab4262a
1 changed files with 0 additions and 8 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue