fix: winrule offsex offsey not apply in left top

This commit is contained in:
DreamMaoMao 2025-06-07 09:57:27 +08:00
parent 2f61e14eeb
commit a7000f28d4
2 changed files with 28 additions and 28 deletions

View file

@ -1095,22 +1095,22 @@ void parse_config_line(Config *config, const char *line) {
ConfigWinRule *rule = &config->window_rules[config->window_rules_count];
memset(rule, 0, sizeof(ConfigWinRule));
rule->isfloating = 0;
rule->isfullscreen = 0;
rule->isnoborder = 0;
rule->isopensilent = 0;
rule->isopenscratchpad = 0;
rule->isunglobal = 0;
rule->isglobal = 0;
rule->isoverlay = 0;
rule->isterm = 0;
rule->noswallow = 0;
rule->isfloating = -1;
rule->isfullscreen = -1;
rule->isnoborder = -1;
rule->isopensilent = -1;
rule->isopenscratchpad = -1;
rule->isunglobal = -1;
rule->isglobal = -1;
rule->isoverlay = -1;
rule->isterm = -1;
rule->noswallow = -1;
rule->monitor = -1;
rule->offsetx = 0;
rule->offsety = 0;
rule->nofadein = 0;
rule->nofadeout = 0;
rule->no_force_center = 0;
rule->nofadein = -1;
rule->nofadeout = -1;
rule->no_force_center = -1;
rule->scratchpad_width = 0;
rule->scratchpad_height = 0;
rule->width = 0;