mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	bar: free old position when changing
This commit is contained in:
		
							parent
							
								
									87334dbccb
								
							
						
					
					
						commit
						ba8981e44b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -17,6 +17,7 @@ struct cmd_results *bar_cmd_position(int argc, char **argv) {
 | 
			
		|||
		if (strcasecmp(valid[i], argv[0]) == 0) {
 | 
			
		||||
			wlr_log(WLR_DEBUG, "Setting bar position '%s' for bar: %s",
 | 
			
		||||
					argv[0], config->current_bar->id);
 | 
			
		||||
			free(config->current_bar->position);
 | 
			
		||||
			config->current_bar->position = strdup(argv[0]);
 | 
			
		||||
			return cmd_results_new(CMD_SUCCESS, NULL, NULL);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue