From 9e6901264b2d93d0ab0b91aee20a3d543f53d0ec Mon Sep 17 00:00:00 2001 From: rti Date: Thu, 19 Jan 2023 23:33:56 +0100 Subject: feat: smart smart_corner_radius (#101) --- sway/commands/smart_corner_radius.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sway/commands/smart_corner_radius.c (limited to 'sway/commands/smart_corner_radius.c') 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); +} -- cgit v1.2.3