swayfx/sway/commands/shadows_on_csd.c
Reza Jelveh fb86ed6b05
feat: 1.9 merge (#277)
Co-authored-by: William McKinnon <contact@willmckinnon.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-04-15 01:39:41 -04:00

20 lines
461 B
C

#include <string.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/tree/arrange.h"
#include "util.h"
struct cmd_results *cmd_shadows_on_csd(int argc, char **argv) {
struct cmd_results *error = checkarg(argc, "shadows_on_csd", EXPECTED_AT_LEAST, 1);
if (error) {
return error;
}
config->shadows_on_csd_enabled = parse_boolean(argv[0], config->shadows_on_csd_enabled);
arrange_root();
return cmd_results_new(CMD_SUCCESS, NULL);
}