mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	node: prettify node type names
This commit is contained in:
		
							parent
							
								
									eb5021ef99
								
							
						
					
					
						commit
						1c4b94ae3c
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -18,13 +18,13 @@ void node_init(struct sway_node *node, enum sway_node_type type, void *thing) {
 | 
				
			||||||
const char *node_type_to_str(enum sway_node_type type) {
 | 
					const char *node_type_to_str(enum sway_node_type type) {
 | 
				
			||||||
	switch (type) {
 | 
						switch (type) {
 | 
				
			||||||
	case N_ROOT:
 | 
						case N_ROOT:
 | 
				
			||||||
		return "N_ROOT";
 | 
							return "root";
 | 
				
			||||||
	case N_OUTPUT:
 | 
						case N_OUTPUT:
 | 
				
			||||||
		return "N_OUTPUT";
 | 
							return "output";
 | 
				
			||||||
	case N_WORKSPACE:
 | 
						case N_WORKSPACE:
 | 
				
			||||||
		return "N_WORKSPACE";
 | 
							return "workspace";
 | 
				
			||||||
	case N_CONTAINER:
 | 
						case N_CONTAINER:
 | 
				
			||||||
		return "N_CONTAINER";
 | 
							return "container";
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return "";
 | 
						return "";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue