diff options
| author | allusive-dev <[email protected]> | 2023-10-13 15:37:56 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-10-13 15:37:56 +1100 |
| commit | c157fa368e01f6f2cf2c1257d55da01cfd605ccf (patch) | |
| tree | 7c0ded9d1e2312fe915326d7445317ad988e292e /src/options.c | |
| parent | Update README.md (diff) | |
| download | compfy-c157fa368e01f6f2cf2c1257d55da01cfd605ccf.tar.xz compfy-c157fa368e01f6f2cf2c1257d55da01cfd605ccf.zip | |
testing corner-rules
Diffstat (limited to 'src/options.c')
| -rw-r--r-- | src/options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 948d60f..785adb4 100644 --- a/src/options.c +++ b/src/options.c @@ -529,6 +529,7 @@ static const struct option longopts[] = { {"animation-for-transient-window", required_argument, NULL, 810}, {"animation-open-exclude", required_argument, NULL, 830}, {"animation-unmap-exclude", required_argument, NULL, 831}, + {"corners-rule", required_argument, NULL, 840}, // Must terminate with a NULL entry {NULL, 0, NULL, 0}, }; @@ -993,6 +994,11 @@ bool get_cfg(options_t *opt, int argc, char *const *argv, bool shadow_enable, case 831: condlst_add(&opt->animation_unmap_blacklist, optarg); break; + case 840: + // --opacity-rule + if (!parse_rule_corners(&opt->corner_rules, optarg)) + exit(1); + break; case 810: { // --animation-for-transient-window enum open_window_animation animation = parse_open_window_animation(optarg); |