mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-05 13:29:54 -05:00
feat: winrule option no_force_center
This commit is contained in:
parent
b167fe3c93
commit
ea03ba6c49
2 changed files with 17 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue