mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-16 05:34:14 -04:00
feat: support nofucs rule for some special window
This commit is contained in:
parent
11dfab478a
commit
c206693257
2 changed files with 29 additions and 17 deletions
|
|
@ -77,6 +77,7 @@ typedef struct {
|
|||
int offsety;
|
||||
int width;
|
||||
int height;
|
||||
int nofocus;
|
||||
int nofadein;
|
||||
int nofadeout;
|
||||
int no_force_center;
|
||||
|
|
@ -1716,6 +1717,7 @@ void parse_option(Config *config, char *key, char *value) {
|
|||
rule->force_tearing = -1;
|
||||
rule->noswallow = -1;
|
||||
rule->noblur = -1;
|
||||
rule->nofocus = -1;
|
||||
rule->nofadein = -1;
|
||||
rule->nofadeout = -1;
|
||||
rule->no_force_center = -1;
|
||||
|
|
@ -1770,6 +1772,8 @@ void parse_option(Config *config, char *key, char *value) {
|
|||
rule->offsetx = atoi(val);
|
||||
} else if (strcmp(key, "offsety") == 0) {
|
||||
rule->offsety = atoi(val);
|
||||
} else if (strcmp(key, "nofocus") == 0) {
|
||||
rule->nofocus = atoi(val);
|
||||
} else if (strcmp(key, "nofadein") == 0) {
|
||||
rule->nofadein = atoi(val);
|
||||
} else if (strcmp(key, "nofadeout") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue