feat: add windowrule option force_tile_state

This commit is contained in:
DreamMaoMao
2025-10-12 19:20:12 +08:00
parent 2f14c50387
commit 3661e1838b
2 changed files with 16 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ typedef struct {
int no_force_center;
int isterm;
int allow_csd;
int force_tile_state;
int noswallow;
int noblur;
float focused_opacity;
@@ -1546,6 +1547,7 @@ void parse_option(Config *config, char *key, char *value) {
rule->isnosizehint = -1;
rule->isterm = -1;
rule->allow_csd = -1;
rule->force_tile_state = -1;
rule->noswallow = -1;
rule->noblur = -1;
rule->nofadein = -1;
@@ -1640,6 +1642,8 @@ void parse_option(Config *config, char *key, char *value) {
rule->isterm = atoi(val);
} else if (strcmp(key, "allow_csd") == 0) {
rule->allow_csd = atoi(val);
} else if (strcmp(key, "force_tile_state") == 0) {
rule->force_tile_state = atoi(val);
} else if (strcmp(key, "noswallow") == 0) {
rule->noswallow = atoi(val);
} else if (strcmp(key, "noblur") == 0) {