mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-10 05:34:05 -04:00
feat: make force_tiled_state as a option
This commit is contained in:
parent
8484093e32
commit
53ee82a726
2 changed files with 26 additions and 5 deletions
|
|
@ -89,6 +89,7 @@ typedef struct {
|
|||
int32_t isterm;
|
||||
int32_t allow_csd;
|
||||
int32_t force_maximize;
|
||||
int32_t force_tiled_state;
|
||||
int32_t force_tearing;
|
||||
int32_t noswallow;
|
||||
int32_t noblur;
|
||||
|
|
@ -2011,6 +2012,7 @@ bool parse_option(Config *config, char *key, char *value) {
|
|||
rule->isterm = -1;
|
||||
rule->allow_csd = -1;
|
||||
rule->force_maximize = -1;
|
||||
rule->force_tiled_state = -1;
|
||||
rule->force_tearing = -1;
|
||||
rule->noswallow = -1;
|
||||
rule->noblur = -1;
|
||||
|
|
@ -2123,6 +2125,8 @@ bool parse_option(Config *config, char *key, char *value) {
|
|||
rule->allow_csd = atoi(val);
|
||||
} else if (strcmp(key, "force_maximize") == 0) {
|
||||
rule->force_maximize = atoi(val);
|
||||
} else if (strcmp(key, "force_tiled_state") == 0) {
|
||||
rule->force_tiled_state = atoi(val);
|
||||
} else if (strcmp(key, "force_tearing") == 0) {
|
||||
rule->force_tearing = atoi(val);
|
||||
} else if (strcmp(key, "noswallow") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue