diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2019-04-15 01:16:35 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-04-14 20:44:12 -0400 |
commit | b2cfcebef61087f819b55d2f815e62aa4a6f1a52 (patch) | |
tree | 1336d7d187cccd3f7d92b4bc4749973117c642ea /sway/commands/new_float.c | |
parent | Implement input type configs (#3784) (diff) | |
download | sway-b2cfcebef61087f819b55d2f815e62aa4a6f1a52.tar.gz sway-b2cfcebef61087f819b55d2f815e62aa4a6f1a52.tar.zst sway-b2cfcebef61087f819b55d2f815e62aa4a6f1a52.zip |
Add deprecation warnings for new_float, new_window, and force_focus_wrapping.
Diffstat (limited to 'sway/commands/new_float.c')
-rw-r--r-- | sway/commands/new_float.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/commands/new_float.c b/sway/commands/new_float.c new file mode 100644 index 00000000..4fedb4cb --- /dev/null +++ b/sway/commands/new_float.c | |||
@@ -0,0 +1,13 @@ | |||
1 | #include "log.h" | ||
2 | #include "sway/commands.h" | ||
3 | #include "sway/config.h" | ||
4 | |||
5 | struct cmd_results *cmd_new_float(int argc, char **argv) { | ||
6 | sway_log(SWAY_INFO, "Warning: new_float is deprecated. " | ||
7 | "Use default_floating_border instead."); | ||
8 | if (config->reading) { | ||
9 | config_add_swaynag_warning("new_float is deprecated. " | ||
10 | "Use default_floating_border instead."); | ||
11 | } | ||
12 | return cmd_default_floating_border(argc, argv); | ||
13 | } | ||