Renamed corner_radius bool to corner_rounding
This commit is contained in:
parent
e5a79fcff2
commit
762f049389
3 changed files with 5 additions and 5 deletions
|
@ -479,7 +479,7 @@ struct layer_effects {
|
||||||
char *namespace;
|
char *namespace;
|
||||||
bool blur;
|
bool blur;
|
||||||
bool shadow;
|
bool shadow;
|
||||||
bool corner_radius;
|
bool corner_rounding;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,7 +15,7 @@ struct cmd_results *cmd_layer_effects(int argc, char **argv) {
|
||||||
memcpy(effect->namespace, argv[0], len);
|
memcpy(effect->namespace, argv[0], len);
|
||||||
effect->blur = false;
|
effect->blur = false;
|
||||||
effect->shadow = false;
|
effect->shadow = false;
|
||||||
effect->corner_radius = false;
|
effect->corner_rounding = false;
|
||||||
|
|
||||||
// Parse the commands
|
// Parse the commands
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
|
@ -27,13 +27,13 @@ struct cmd_results *cmd_layer_effects(int argc, char **argv) {
|
||||||
effect->shadow = true;
|
effect->shadow = true;
|
||||||
continue;
|
continue;
|
||||||
} else if (strcmp(arg, "corner_rounding") == 0) {
|
} else if (strcmp(arg, "corner_rounding") == 0) {
|
||||||
effect->corner_radius = true;
|
effect->corner_rounding = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
return cmd_results_new(CMD_INVALID, "Invalid layer_effects effect! Got \"%s\"", arg);
|
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);
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ void output_layer_for_each_toplevel_surface(struct sway_output *output,
|
||||||
if (effects) {
|
if (effects) {
|
||||||
data->deco_data.blur = effects->blur && config->blur_enabled;
|
data->deco_data.blur = effects->blur && config->blur_enabled;
|
||||||
data->deco_data.shadow = effects->shadow && config->shadow_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,
|
output_surface_for_each_surface(output, wlr_layer_surface_v1->surface,
|
||||||
|
|
Loading…
Add table
Reference in a new issue