aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/force_display_urgency_hint.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-14 11:44:18 -0500
committerLibravatar GitHub <noreply@github.com>2019-01-14 11:44:18 -0500
commit15cd8b6a86295a445a1037afd0028b1226a14c82 (patch)
tree56332b9c150459beb5aef94605372ef179ec8854 /sway/commands/force_display_urgency_hint.c
parentMerge pull request #3418 from RyanDwyer/remove-resize-axis (diff)
parentRemove now-unused "input" argument of cmd_results_new (diff)
downloadsway-15cd8b6a86295a445a1037afd0028b1226a14c82.tar.gz
sway-15cd8b6a86295a445a1037afd0028b1226a14c82.tar.zst
sway-15cd8b6a86295a445a1037afd0028b1226a14c82.zip
Merge pull request #3403 from mstoeckl/ipcleanup
Remove 'input' field of IPC command return json
Diffstat (limited to 'sway/commands/force_display_urgency_hint.c')
-rw-r--r--sway/commands/force_display_urgency_hint.c4
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}