Skip to content

Commit

Permalink
add back in the display sort comand
Browse files Browse the repository at this point in the history
  • Loading branch information
http://jneen.net/ committed May 3, 2021
1 parent 9a1341c commit 408abf3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,19 @@ static void handle_domain_config(FILE *rsp, struct token domain, char *message)
} else {
daemon_fail(rsp, "unknown value '%.*s' given to command '%.*s' for domain '%.*s'\n", value.length, value.text, command.length, command.text, domain.length, domain.text);
}
} else if (token_equals(command, COMMAND_CONFIG_DISPLAY_SORT)) {
struct token value = get_token(&message);
if (!token_is_valid(value)) {
fprintf(rsp, "%s\n", window_node_child_str[g_space_manager.window_placement]);
} else if (token_equals(value, ARGUMENT_CONFIG_DISPLAY_SORT_NONE)) {
g_display_manager.sort_order = DISPLAY_SORT_NONE;
} else if (token_equals(value, ARGUMENT_CONFIG_DISPLAY_SORT_HORIZ)) {
g_display_manager.sort_order = DISPLAY_SORT_HORIZ;
} else if (token_equals(value, ARGUMENT_CONFIG_DISPLAY_SORT_VERT)) {
g_display_manager.sort_order = DISPLAY_SORT_VERT;
} else {
daemon_fail(rsp, "unknown value '%.*s' given to command '%.*s' for domain '%.*s'\n", value.length, value.text, command.length, command.text, domain.length, domain.text);
}
} else if (token_equals(command, COMMAND_CONFIG_TOPMOST)) {
struct token value = get_token(&message);
if (!token_is_valid(value)) {
Expand Down

0 comments on commit 408abf3

Please sign in to comment.