mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Improve new workspace name selection
Improves upon 18e425ed by using the first assigned workspace instead of
the last one. The order isn't explicitly guaranteed to be the same as in
the config, but in general works.
			
			
This commit is contained in:
		
							parent
							
								
									99631c5050
								
							
						
					
					
						commit
						471533be0a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -205,6 +205,7 @@ char *workspace_next_name(const char *output_name) {
 | 
				
			||||||
				&& workspace_by_name(wso->workspace) == NULL) {
 | 
									&& workspace_by_name(wso->workspace) == NULL) {
 | 
				
			||||||
			free(target);
 | 
								free(target);
 | 
				
			||||||
			target = strdup(wso->workspace);
 | 
								target = strdup(wso->workspace);
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (target != NULL) {
 | 
						if (target != NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue