Renamed corner_radius bool to corner_rounding

This commit is contained in:
Erik Reider 2023-04-22 13:29:04 +02:00
parent e5a79fcff2
commit 762f049389
3 changed files with 5 additions and 5 deletions

View file

@ -479,7 +479,7 @@ struct layer_effects {
char *namespace;
bool blur;
bool shadow;
bool corner_radius;
bool corner_rounding;
};
/**

View file

@ -15,7 +15,7 @@ struct cmd_results *cmd_layer_effects(int argc, char **argv) {
memcpy(effect->namespace, argv[0], len);
effect->blur = false;
effect->shadow = false;
effect->corner_radius = false;
effect->corner_rounding = false;
// Parse the commands
for (int i = 1; i < argc; i++) {
@ -27,13 +27,13 @@ struct cmd_results *cmd_layer_effects(int argc, char **argv) {
effect->shadow = true;
continue;
} else if (strcmp(arg, "corner_rounding") == 0) {
effect->corner_radius = true;
effect->corner_rounding = true;
continue;
}
return cmd_results_new(CMD_INVALID, "Invalid layer_effects effect! Got \"%s\"", arg);
}
if (!effect->blur && !effect->shadow && !effect->corner_radius) {
if (!effect->blur && !effect->shadow && !effect->corner_rounding) {
return cmd_results_new(CMD_SUCCESS, NULL);
}

View file

@ -204,7 +204,7 @@ void output_layer_for_each_toplevel_surface(struct sway_output *output,
if (effects) {
data->deco_data.blur = effects->blur && config->blur_enabled;
data->deco_data.shadow = effects->shadow && config->shadow_enabled;
data->deco_data.corner_radius = effects->corner_radius? config->corner_radius: 0;
data->deco_data.corner_radius = effects->corner_rounding? config->corner_radius: 0;
}
output_surface_for_each_surface(output, wlr_layer_surface_v1->surface,