mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1105 from zandrmartin/fix-workspace-output-assignment
fix workspace output assignment
This commit is contained in:
		
						commit
						dc33c2cc1d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -31,7 +31,7 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
 | 
				
			||||||
					"Unable to allocate workspace output");
 | 
										"Unable to allocate workspace output");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		wso->workspace = join_args(argv, argc - 2);
 | 
							wso->workspace = join_args(argv, argc - 2);
 | 
				
			||||||
		wso->output = strdup(argv[output_location]);
 | 
							wso->output = strdup(argv[output_location + 1]);
 | 
				
			||||||
		int i = -1;
 | 
							int i = -1;
 | 
				
			||||||
		if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) {
 | 
							if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) {
 | 
				
			||||||
			struct workspace_output *old = config->workspace_outputs->items[i];
 | 
								struct workspace_output *old = config->workspace_outputs->items[i];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue