mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Check for command result when setting config.has_focused_tab_title
This commit is contained in:
parent
8e9fba33b7
commit
b7b9c30596
1 changed files with 6 additions and 2 deletions
|
|
@ -88,7 +88,11 @@ struct cmd_results *cmd_client_noop(int argc, char **argv) {
|
|||
}
|
||||
|
||||
struct cmd_results *cmd_client_focused_tab_title(int argc, char **argv) {
|
||||
config->has_focused_tab_title = true;
|
||||
return handle_command(argc, argv, "client.focused_tab_title",
|
||||
struct cmd_results *result = handle_command(argc, argv,
|
||||
"client.focused_tab_title",
|
||||
&config->border_colors.focused_tab_title, "#2e9ef4ff");
|
||||
if (result && result->status == CMD_SUCCESS) {
|
||||
config->has_focused_tab_title = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue