feat: winrule option no_force_center

This commit is contained in:
DreamMaoMao 2025-06-01 21:41:14 +08:00
parent b167fe3c93
commit ea03ba6c49
2 changed files with 17 additions and 3 deletions

View file

@ -37,6 +37,7 @@ typedef struct {
int width;
int height;
int nofadein;
int no_force_center;
int isterm;
int noswallow;
int scratchpad_width;
@ -1101,6 +1102,7 @@ void parse_config_line(Config *config, const char *line) {
rule->offsetx = 0;
rule->offsety = 0;
rule->nofadein = 0;
rule->no_force_center = 0;
rule->scratchpad_width = 0;
rule->scratchpad_height = 0;
rule->width = 0;
@ -1144,7 +1146,9 @@ void parse_config_line(Config *config, const char *line) {
rule->offsety = atoi(val);
} else if (strcmp(key, "nofadein") == 0) {
rule->nofadein = atoi(val);
} else if (strcmp(key, "scratchpad_width") == 0) {
} else if (strcmp(key, "no_force_center") == 0) {
rule->no_force_center = atoi(val);
} else if (strcmp(key, "scratchpad_width") == 0) {
rule->scratchpad_width = atoi(val);
} else if (strcmp(key, "scratchpad_height") == 0) {
rule->scratchpad_height = atoi(val);