mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix crash when running move container to workspace back_and_forth
				
					
				
			The back_and_forth condition is intended to be handled in the else-if block, but this was never reached because it remained in the first block's conditions.
This commit is contained in:
		
							parent
							
								
									1818c58e40
								
							
						
					
					
						commit
						5ac6f2f429
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -105,7 +105,6 @@ static struct cmd_results *cmd_move_container(struct sway_container *current,
 | 
				
			||||||
				strcasecmp(argv[2], "prev") == 0 ||
 | 
									strcasecmp(argv[2], "prev") == 0 ||
 | 
				
			||||||
				strcasecmp(argv[2], "next_on_output") == 0 ||
 | 
									strcasecmp(argv[2], "next_on_output") == 0 ||
 | 
				
			||||||
				strcasecmp(argv[2], "prev_on_output") == 0 ||
 | 
									strcasecmp(argv[2], "prev_on_output") == 0 ||
 | 
				
			||||||
				strcasecmp(argv[2], "back_and_forth") == 0 ||
 | 
					 | 
				
			||||||
				strcasecmp(argv[2], "current") == 0) {
 | 
									strcasecmp(argv[2], "current") == 0) {
 | 
				
			||||||
			ws = workspace_by_name(argv[2]);
 | 
								ws = workspace_by_name(argv[2]);
 | 
				
			||||||
		} else if (strcasecmp(argv[2], "back_and_forth") == 0) {
 | 
							} else if (strcasecmp(argv[2], "back_and_forth") == 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue