diff options
author | rti <[email protected]> | 2023-01-19 23:33:56 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-19 17:33:56 -0500 |
commit | 9e6901264b2d93d0ab0b91aee20a3d543f53d0ec (patch) | |
tree | 12a587ec22a820272249624fe066b12e461a5675 /sway/commands/smart_corner_radius.c | |
parent | dbe2be6a363a9db2bacf96447badf3d04ece4587 (diff) |
feat: smart smart_corner_radius (#101)
Diffstat (limited to 'sway/commands/smart_corner_radius.c')
-rw-r--r-- | sway/commands/smart_corner_radius.c | 17 |
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); +} |