diff options
author | Ronan Pigott <ronan@rjp.ie> | 2022-11-16 15:50:34 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-26 09:48:58 +0100 |
commit | 1c4b94ae3ca94b972410c80a61404a347af1ee68 (patch) | |
tree | 6c1da048dcde3ed4e74ca318da219c28f6f49378 | |
parent | root: move the workspace matching code to its own file (diff) | |
download | sway-1c4b94ae3ca94b972410c80a61404a347af1ee68.tar.gz sway-1c4b94ae3ca94b972410c80a61404a347af1ee68.tar.zst sway-1c4b94ae3ca94b972410c80a61404a347af1ee68.zip |
node: prettify node type names
-rw-r--r-- | sway/tree/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/tree/node.c b/sway/tree/node.c index bc7e2aa5..12361c75 100644 --- a/sway/tree/node.c +++ b/sway/tree/node.c | |||
@@ -18,13 +18,13 @@ void node_init(struct sway_node *node, enum sway_node_type type, void *thing) { | |||
18 | const char *node_type_to_str(enum sway_node_type type) { | 18 | const char *node_type_to_str(enum sway_node_type type) { |
19 | switch (type) { | 19 | switch (type) { |
20 | case N_ROOT: | 20 | case N_ROOT: |
21 | return "N_ROOT"; | 21 | return "root"; |
22 | case N_OUTPUT: | 22 | case N_OUTPUT: |
23 | return "N_OUTPUT"; | 23 | return "output"; |
24 | case N_WORKSPACE: | 24 | case N_WORKSPACE: |
25 | return "N_WORKSPACE"; | 25 | return "workspace"; |
26 | case N_CONTAINER: | 26 | case N_CONTAINER: |
27 | return "N_CONTAINER"; | 27 | return "container"; |
28 | } | 28 | } |
29 | return ""; | 29 | return ""; |
30 | } | 30 | } |