swayfx/sway/commands/shadows_on_csd.c
Erik Reider 3efd3b558f
Add option for enabling shadows for CSD windows (#106)
* Add option for enabling shadows for CSD windows

* Disable drawing borders when CSD and shadows csd is enabled
2023-02-01 01:13:04 +01:00

24 lines
561 B
C

#include <string.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/tree/arrange.h"
#include "sway/tree/view.h"
#include "sway/tree/container.h"
#include "log.h"
#include "stringop.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);
}