summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-26 19:21:05 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-26 19:21:05 -0700
commitef1c52053755fa14b4ca98b22c506f73f5f4a4b7 (patch)
treecc0983abdea5a3f92ed8a9a54e68bd85cbeb4716 /dix/main.c
parentb114d4e861885cc5b49cd81b33ad825461811b3e (diff)
XQuartz: Cleaned up startup and thread creation a tad.
(cherry picked from commit c861fe00e112b21ee0156d09a6cd5281642a1dcc)
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/dix/main.c b/dix/main.c
index 6d9dd3332..fbd64138e 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();