XQuartz: Cleaned up command line arguments.
This commit is contained in:
		
							parent
							
								
									4cf3002b60
								
							
						
					
					
						commit
						603a8b73d4
					
				| 
						 | 
					@ -701,20 +701,15 @@ void ddxInitGlobals(void)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
int ddxProcessArgument( int argc, char *argv[], int i )
 | 
					int ddxProcessArgument( int argc, char *argv[], int i )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    if( !strcmp( argv[i], "-launchd" ) ) {
 | 
					//    if ( !strcmp( argv[i], "-fullscreen" ) ) {
 | 
				
			||||||
        ErrorF( "Launchd command line argument noticed.\n" );
 | 
					//        ErrorF( "Running full screen in parallel with Mac OS X Quartz window server.\n" );
 | 
				
			||||||
        return 1;
 | 
					//        return 1;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ( !strcmp( argv[i], "-fullscreen" ) ) {
 | 
					//    if ( !strcmp( argv[i], "-rootless" ) ) {
 | 
				
			||||||
        ErrorF( "Running full screen in parallel with Mac OS X Quartz window server.\n" );
 | 
					//        ErrorF( "Running rootless inside Mac OS X window server.\n" );
 | 
				
			||||||
        return 1;
 | 
					//        return 1;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    if ( !strcmp( argv[i], "-rootless" ) ) {
 | 
					 | 
				
			||||||
        ErrorF( "Running rootless inside Mac OS X window server.\n" );
 | 
					 | 
				
			||||||
        return 1;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // This command line arg is passed when launched from the Aqua GUI.
 | 
					    // This command line arg is passed when launched from the Aqua GUI.
 | 
				
			||||||
    if ( !strncmp( argv[i], "-psn_", 5 ) ) {
 | 
					    if ( !strncmp( argv[i], "-psn_", 5 ) ) {
 | 
				
			||||||
| 
						 | 
					@ -838,12 +833,6 @@ int ddxProcessArgument( int argc, char *argv[], int i )
 | 
				
			||||||
        exit(0);
 | 
					        exit(0);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // XDarwinStartup uses this argument to indicate the IOKit X server
 | 
					 | 
				
			||||||
    // should be started. Ignore it here.
 | 
					 | 
				
			||||||
    if ( !strcmp( argv[i], "-iokit" ) ) {
 | 
					 | 
				
			||||||
        return 1;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue