node: prettify node type names

(cherry picked from commit 1c4b94ae3c)
This commit is contained in:
Ronan Pigott 2022-11-16 15:50:34 -07:00 committed by Simon Ser
parent 25f559dcde
commit 16b391db48

View file

@ -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) {
switch (type) {
case N_ROOT:
return "N_ROOT";
return "root";
case N_OUTPUT:
return "N_OUTPUT";
return "output";
case N_WORKSPACE:
return "N_WORKSPACE";
return "workspace";
case N_CONTAINER:
return "N_CONTAINER";
return "container";
}
return "";
}