Add deprecation warnings for new_float, new_window, and force_focus_wrapping.

This commit is contained in:
Connor E 2019-04-15 01:16:35 +01:00 committed by Brian Ashworth
parent bd3720585e
commit b2cfcebef6
7 changed files with 40 additions and 9 deletions

View file

@ -0,0 +1,13 @@
#include "log.h"
#include "sway/commands.h"
#include "sway/config.h"
struct cmd_results *cmd_new_window(int argc, char **argv) {
sway_log(SWAY_INFO, "Warning: new_window is deprecated. "
"Use default_border instead.");
if (config->reading) {
config_add_swaynag_warning("new_window is deprecated. "
"Use default_border instead.");
}
return cmd_default_border(argc, argv);
}