mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-25 13:14:13 -04:00
feat: add windowrule option vrr_only_fullscreen
This commit is contained in:
parent
68ac770281
commit
b472fa11d1
3 changed files with 43 additions and 4 deletions
|
|
@ -80,6 +80,7 @@ typedef struct {
|
|||
int32_t ignore_minimize;
|
||||
int32_t isnosizehint;
|
||||
int32_t idleinhibit_when_focus;
|
||||
int32_t vrr_only_fullscreen;
|
||||
char *monitor;
|
||||
int32_t offsetx;
|
||||
int32_t offsety;
|
||||
|
|
@ -2364,6 +2365,7 @@ bool parse_option(Config *config, char *key, char *value) {
|
|||
rule->ignore_minimize = -1;
|
||||
rule->isnosizehint = -1;
|
||||
rule->idleinhibit_when_focus = -1;
|
||||
rule->vrr_only_fullscreen = -1;
|
||||
rule->isterm = -1;
|
||||
rule->allow_csd = -1;
|
||||
rule->force_fakemaximize = -1;
|
||||
|
|
@ -2478,6 +2480,8 @@ bool parse_option(Config *config, char *key, char *value) {
|
|||
rule->isnosizehint = atoi(val);
|
||||
} else if (strcmp(key, "idleinhibit_when_focus") == 0) {
|
||||
rule->idleinhibit_when_focus = atoi(val);
|
||||
} else if (strcmp(key, "vrr_only_fullscreen") == 0) {
|
||||
rule->vrr_only_fullscreen = atoi(val);
|
||||
} else if (strcmp(key, "isterm") == 0) {
|
||||
rule->isterm = atoi(val);
|
||||
} else if (strcmp(key, "allow_csd") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue