diff options
author | 2022-11-16 15:50:34 -0700 | |
---|---|---|
committer | 2022-11-26 10:29:59 +0100 | |
commit | 16b391db48aa7e6ab1fed25f5f2e5fdbbbb513f6 (patch) | |
tree | b255277273105115787046fe91b8bc3a21f7a570 | |
parent | root: move the workspace matching code to its own file (diff) | |
download | sway-16b391db48aa7e6ab1fed25f5f2e5fdbbbb513f6.tar.gz sway-16b391db48aa7e6ab1fed25f5f2e5fdbbbb513f6.tar.zst sway-16b391db48aa7e6ab1fed25f5f2e5fdbbbb513f6.zip |
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) { | |||
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 | } |