diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-11-16 15:50:34 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-11-16 15:50:34 -0700 |
| commit | 10c573d1ee9e36f943c7f02503a50361490f473b (patch) | |
| tree | b255277273105115787046fe91b8bc3a21f7a570 | |
| parent | db4429316f2defb84a85e7a54c67203c70e0e443 (diff) | |
node: prettify node type names
(cherry picked from commit 1c4b94ae3ca94b972410c80a61404a347af1ee68)
| -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) { 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 ""; } |
