diff options
Diffstat (limited to 'sway/commands/force_focus_wrapping.c')
-rw-r--r-- | sway/commands/force_focus_wrapping.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sway/commands/force_focus_wrapping.c b/sway/commands/force_focus_wrapping.c index e646ae9b..fafc1c3e 100644 --- a/sway/commands/force_focus_wrapping.c +++ b/sway/commands/force_focus_wrapping.c | |||
@@ -1,9 +1,16 @@ | |||
1 | #include <strings.h> | ||
2 | #include "sway/commands.h" | 1 | #include "sway/commands.h" |
3 | #include "sway/config.h" | 2 | #include "sway/config.h" |
3 | #include "log.h" | ||
4 | #include "util.h" | 4 | #include "util.h" |
5 | 5 | ||
6 | struct cmd_results *cmd_force_focus_wrapping(int argc, char **argv) { | 6 | struct cmd_results *cmd_force_focus_wrapping(int argc, char **argv) { |
7 | sway_log(SWAY_INFO, "Warning: force_focus_wrapping is deprecated. " | ||
8 | "Use focus_wrapping instead."); | ||
9 | if (config->reading) { | ||
10 | config_add_swaynag_warning("force_focus_wrapping is deprecated. " | ||
11 | "Use focus_wrapping instead."); | ||
12 | } | ||
13 | |||
7 | struct cmd_results *error = | 14 | struct cmd_results *error = |
8 | checkarg(argc, "force_focus_wrapping", EXPECTED_EQUAL_TO, 1); | 15 | checkarg(argc, "force_focus_wrapping", EXPECTED_EQUAL_TO, 1); |
9 | if (error) { | 16 | if (error) { |