diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-02 11:00:14 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-02 11:00:14 +0930 |
commit | 334456952930cb3e55c02fcdada2d0c074cd0520 (patch) | |
tree | dccc78d08cf18c68dfe38b498808f60da807c366 /dix/main.c | |
parent | 8e56fd9728d63a7a48ef44503425c6e25c7c9ffb (diff) | |
parent | 3b8d53452cd6c74d32d7759964a7cd9ee775f161 (diff) |
Merge branch 'master' into mpx
Conflicts:
Xi/exevents.c
dix/devices.c
Diffstat (limited to 'dix/main.c')
-rw-r--r-- | dix/main.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/dix/main.c b/dix/main.c index d99cb2d75..5dce3dfd2 100644 --- a/dix/main.c +++ b/dix/main.c @@ -237,12 +237,11 @@ static int indexForScanlinePad[ 65 ] = { #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif -#ifdef __APPLE__ -void DarwinHandleGUI(int argc, char **argv, char **envp); +#ifdef XQUARTZ +int dix_main(int argc, char *argv[], char *envp[]) +#else +int main(int argc, char *argv[], char *envp[]) #endif - -int -main(int argc, char *argv[], char *envp[]) { int i, j, k, error; char *xauthfile; @@ -256,13 +255,6 @@ main(int argc, char *argv[], char *envp[]) PrinterInitGlobals(); #endif -#ifdef XQUARTZ - /* Quartz support on Mac OS X requires that the Cocoa event loop be in - * the main thread. This allows the X server main to be called again - * from another thread. */ - DarwinHandleGUI(argc, argv, envp); -#endif - CheckUserParameters(argc, argv, envp); CheckUserAuthorization(); @@ -462,7 +454,10 @@ main(int argc, char *argv[], char *envp[]) #endif config_fini(); + + memset(WindowTable, 0, MAXSCREENS * sizeof(WindowPtr)); CloseDownDevices(); + for (i = screenInfo.numScreens - 1; i >= 0; i--) { FreeScratchPixmapsForScreen(i); |