diff options
Diffstat (limited to 'sway/commands/bar/tray_bindsym.c')
-rw-r--r-- | sway/commands/bar/tray_bindsym.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/commands/bar/tray_bindsym.c b/sway/commands/bar/tray_bindsym.c index ad413446..4e57e35e 100644 --- a/sway/commands/bar/tray_bindsym.c +++ b/sway/commands/bar/tray_bindsym.c | |||
@@ -12,7 +12,7 @@ struct cmd_results *bar_cmd_tray_bindsym(int argc, char **argv) { | |||
12 | } | 12 | } |
13 | 13 | ||
14 | if (!config->current_bar) { | 14 | if (!config->current_bar) { |
15 | return cmd_results_new(CMD_FAILURE, "tray_bindsym", "No bar defined."); | 15 | return cmd_results_new(CMD_FAILURE, "No bar defined."); |
16 | } | 16 | } |
17 | 17 | ||
18 | int button = 0; | 18 | int button = 0; |
@@ -21,7 +21,7 @@ struct cmd_results *bar_cmd_tray_bindsym(int argc, char **argv) { | |||
21 | button = argv[0][strlen("button")] - '0'; | 21 | button = argv[0][strlen("button")] - '0'; |
22 | } | 22 | } |
23 | if (button < 1 || button > 9) { | 23 | if (button < 1 || button > 9) { |
24 | return cmd_results_new(CMD_FAILURE, "tray_bindsym", | 24 | return cmd_results_new(CMD_FAILURE, |
25 | "[Bar %s] Only buttons 1 to 9 are supported", | 25 | "[Bar %s] Only buttons 1 to 9 are supported", |
26 | config->current_bar->id); | 26 | config->current_bar->id); |
27 | } | 27 | } |
@@ -42,14 +42,14 @@ struct cmd_results *bar_cmd_tray_bindsym(int argc, char **argv) { | |||
42 | wlr_log(WLR_DEBUG, "[Bar %s] Binding button %d to %s", | 42 | wlr_log(WLR_DEBUG, "[Bar %s] Binding button %d to %s", |
43 | config->current_bar->id, button, commands[i]); | 43 | config->current_bar->id, button, commands[i]); |
44 | config->current_bar->tray_bindings[button] = commands[i]; | 44 | config->current_bar->tray_bindings[button] = commands[i]; |
45 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 45 | return cmd_results_new(CMD_SUCCESS, NULL); |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | return cmd_results_new(CMD_INVALID, "tray_bindsym", | 49 | return cmd_results_new(CMD_INVALID, |
50 | "[Bar %s] Invalid command %s", config->current_bar->id, argv[1]); | 50 | "[Bar %s] Invalid command %s", config->current_bar->id, argv[1]); |
51 | #else | 51 | #else |
52 | return cmd_results_new(CMD_INVALID, "tray_bindsym", | 52 | return cmd_results_new(CMD_INVALID, |
53 | "Sway has been compiled without tray support"); | 53 | "Sway has been compiled without tray support"); |
54 | #endif | 54 | #endif |
55 | } | 55 | } |