summaryrefslogtreecommitdiff
path: root/sway/commands/new_float.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/new_float.c')
-rw-r--r--sway/commands/new_float.c13
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 @@
+#include "log.h"
+#include "sway/commands.h"
+#include "sway/config.h"
+
+struct cmd_results *cmd_new_float(int argc, char **argv) {
+ sway_log(SWAY_INFO, "Warning: new_float is deprecated. "
+ "Use default_floating_border instead.");
+ if (config->reading) {
+ config_add_swaynag_warning("new_float is deprecated. "
+ "Use default_floating_border instead.");
+ }
+ return cmd_default_floating_border(argc, argv);
+}