feat: add windowrule option vrr_only_fullscreen

This commit is contained in:
DreamMaoMao 2026-06-23 14:45:06 +08:00
parent 68ac770281
commit b472fa11d1
3 changed files with 43 additions and 4 deletions

View file

@ -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) {