aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/seat/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/seat/idle.c')
-rw-r--r--sway/commands/seat/idle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/commands/seat/idle.c b/sway/commands/seat/idle.c
index 82428f2c..62b94db2 100644
--- a/sway/commands/seat/idle.c
+++ b/sway/commands/seat/idle.c
@@ -3,6 +3,7 @@
3#include <string.h> 3#include <string.h>
4#include <strings.h> 4#include <strings.h>
5#include <stdint.h> 5#include <stdint.h>
6#include "log.h"
6#include "sway/commands.h" 7#include "sway/commands.h"
7#include "sway/config.h" 8#include "sway/config.h"
8#include "sway/input/seat.h" 9#include "sway/input/seat.h"
@@ -69,5 +70,10 @@ struct cmd_results *seat_cmd_idle_wake(int argc, char **argv) {
69 return cmd_results_new(CMD_FAILURE, "Invalid idle source"); 70 return cmd_results_new(CMD_FAILURE, "Invalid idle source");
70 } 71 }
71 config->handler_context.seat_config->idle_wake_sources = sources; 72 config->handler_context.seat_config->idle_wake_sources = sources;
73 sway_log(SWAY_INFO, "Warning: seat idle_wake is deprecated");
74 if (config->reading) {
75 config_add_swaynag_warning("seat idle_wake is deprecated. "
76 "Only seat idle_inhibit is supported.");
77 }
72 return cmd_results_new(CMD_SUCCESS, NULL); 78 return cmd_results_new(CMD_SUCCESS, NULL);
73} 79}