mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	commands: prevent running empty seat command
This commit is contained in:
		
							parent
							
								
									1376d36104
								
							
						
					
					
						commit
						6cd92b193c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,7 @@ static struct cmd_handler seat_handlers[] = {
 | 
			
		|||
 | 
			
		||||
struct cmd_results *cmd_seat(int argc, char **argv) {
 | 
			
		||||
	struct cmd_results *error = NULL;
 | 
			
		||||
	if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 1))) {
 | 
			
		||||
	if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 2))) {
 | 
			
		||||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue