XQuartz: Adopt input_lock() and input_unlock()

This allows us to remove darwinEvents_lock() and darwinEvents_unlock()
and remove the serverRunning hack from dix

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia
2016-09-19 00:21:44 -07:00
parent 8bc4727f47
commit 7d6ebf3f4e
6 changed files with 41 additions and 160 deletions

View File

@@ -83,26 +83,10 @@ LegalModifier(unsigned int key, DeviceIntPtr pDev)
}
#ifdef XQUARTZ
#include <pthread.h>
BOOL serverRunning = TRUE;
pthread_mutex_t serverRunningMutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t serverRunningCond = PTHREAD_COND_INITIALIZER;
int darwinMainScreenX = 0;
int darwinMainScreenY = 0;
BOOL no_configure_window = FALSE;
void
darwinEvents_lock(void)
{
}
void
darwinEvents_unlock(void)
{
}
#endif
#ifdef DDXBEFORERESET