diff options
Diffstat (limited to 'sway/commands/force_display_urgency_hint.c')
-rw-r--r-- | sway/commands/force_display_urgency_hint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/force_display_urgency_hint.c b/sway/commands/force_display_urgency_hint.c index 5e5e2d55..3202fc43 100644 --- a/sway/commands/force_display_urgency_hint.c +++ b/sway/commands/force_display_urgency_hint.c | |||
@@ -12,12 +12,12 @@ struct cmd_results *cmd_force_display_urgency_hint(int argc, char **argv) { | |||
12 | int timeout = (int)strtol(argv[0], &err, 10); | 12 | int timeout = (int)strtol(argv[0], &err, 10); |
13 | if (*err) { | 13 | if (*err) { |
14 | if (strcmp(err, "ms") != 0) { | 14 | if (strcmp(err, "ms") != 0) { |
15 | return cmd_results_new(CMD_INVALID, "force_display_urgency_hint", | 15 | return cmd_results_new(CMD_INVALID, |
16 | "Expected 'force_display_urgency_hint <timeout> ms'"); | 16 | "Expected 'force_display_urgency_hint <timeout> ms'"); |
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | config->urgent_timeout = timeout > 0 ? timeout : 0; | 20 | config->urgent_timeout = timeout > 0 ? timeout : 0; |
21 | 21 | ||
22 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 22 | return cmd_results_new(CMD_SUCCESS, NULL); |
23 | } | 23 | } |