|  |  | @ -372,9 +372,14 @@ static bool cmd_output(struct sway_config *config, int argc, char **argv) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 	struct output_config *output = calloc(1, sizeof(struct output_config)); |  |  |  | 	struct output_config *output = calloc(1, sizeof(struct output_config)); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	output->x = output->y = output->width = output->height = -1; |  |  |  | 	output->x = output->y = output->width = output->height = -1; | 
			
		
	
		
		
			
				
					
					|  |  |  | 	output->name = strdup(argv[0]); |  |  |  | 	output->name = strdup(argv[0]); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	output->enabled = true; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	// TODO: atoi doesn't handle invalid numbers
 |  |  |  | 	// TODO: atoi doesn't handle invalid numbers
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	 |  |  |  | 	 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	if (strcasecmp(argv[1], "disable") == 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		output->enabled = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	int i; |  |  |  | 	int i; | 
			
		
	
		
		
			
				
					
					|  |  |  | 	for (i = 1; i < argc; ++i) { |  |  |  | 	for (i = 1; i < argc; ++i) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if (strcasecmp(argv[i], "resolution") == 0 || strcasecmp(argv[i], "res") == 0) { |  |  |  | 		if (strcasecmp(argv[i], "resolution") == 0 || strcasecmp(argv[i], "res") == 0) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |