feat: support nofucs rule for some special window

This commit is contained in:
DreamMaoMao
2025-11-09 15:40:51 +08:00
parent f542d5d5e6
commit 8875156760
2 changed files with 29 additions and 17 deletions

View File

@@ -77,6 +77,7 @@ typedef struct {
int offsety;
int width;
int height;
int nofocus;
int nofadein;
int nofadeout;
int no_force_center;
@@ -1716,6 +1717,7 @@ void parse_option(Config *config, char *key, char *value) {
rule->force_tearing = -1;
rule->noswallow = -1;
rule->noblur = -1;
rule->nofocus = -1;
rule->nofadein = -1;
rule->nofadeout = -1;
rule->no_force_center = -1;
@@ -1770,6 +1772,8 @@ void parse_option(Config *config, char *key, char *value) {
rule->offsetx = atoi(val);
} else if (strcmp(key, "offsety") == 0) {
rule->offsety = atoi(val);
} else if (strcmp(key, "nofocus") == 0) {
rule->nofocus = atoi(val);
} else if (strcmp(key, "nofadein") == 0) {
rule->nofadein = atoi(val);
} else if (strcmp(key, "nofadeout") == 0) {