summaryrefslogtreecommitdiff
path: root/sway/commands/smart_corner_radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/smart_corner_radius.c')
-rw-r--r--sway/commands/smart_corner_radius.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/sway/commands/smart_corner_radius.c b/sway/commands/smart_corner_radius.c
new file mode 100644
index 00000000..4104cb4b
--- /dev/null
+++ b/sway/commands/smart_corner_radius.c
@@ -0,0 +1,17 @@
+#include "sway/commands.h"
+#include "sway/config.h"
+#include "sway/tree/arrange.h"
+#include "util.h"
+
+struct cmd_results *cmd_smart_corner_radius(int argc, char **argv) {
+ struct cmd_results *error = NULL;
+ if ((error = checkarg(argc, "smart_corner_radius", EXPECTED_EQUAL_TO, 1))) {
+ return error;
+ }
+
+ config->smart_corner_radius = parse_boolean(argv[0], true);
+
+ arrange_root();
+
+ return cmd_results_new(CMD_SUCCESS, NULL);
+}