aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/client.c')
-rw-r--r--sway/commands/client.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c
index dd0694df..77263145 100644
--- a/sway/commands/client.c
+++ b/sway/commands/client.c
@@ -18,6 +18,12 @@ static struct cmd_results *handle_command(int argc, char **argv, char *cmd_name,
18 return error; 18 return error;
19 } 19 }
20 20
21 if (argc > 3 && strcmp(cmd_name, "client.focused_tab_title") == 0) {
22 sway_log(SWAY_ERROR,
23 "Warning: indicator and child_border colors have no effect for %s",
24 cmd_name);
25 }
26
21 struct border_colors colors = {0}; 27 struct border_colors colors = {0};
22 const char *ind_hex = argc > 3 ? argv[3] : default_indicator; 28 const char *ind_hex = argc > 3 ? argv[3] : default_indicator;
23 const char *child_hex = argc > 4 ? argv[4] : argv[1]; // def to background 29 const char *child_hex = argc > 4 ? argv[4] : argv[1]; // def to background
@@ -80,3 +86,13 @@ struct cmd_results *cmd_client_noop(int argc, char **argv) {
80 sway_log(SWAY_INFO, "Warning: %s is ignored by sway", argv[-1]); 86 sway_log(SWAY_INFO, "Warning: %s is ignored by sway", argv[-1]);
81 return cmd_results_new(CMD_SUCCESS, NULL); 87 return cmd_results_new(CMD_SUCCESS, NULL);
82} 88}
89
90struct cmd_results *cmd_client_focused_tab_title(int argc, char **argv) {
91 struct cmd_results *result = handle_command(argc, argv,
92 "client.focused_tab_title",
93 &config->border_colors.focused_tab_title, "#2e9ef4ff");
94 if (result && result->status == CMD_SUCCESS) {
95 config->has_focused_tab_title = true;
96 }
97 return result;
98}