feat: add isnosizehit option to windowrule

This commit is contained in:
DreamMaoMao 2025-08-05 21:04:05 +08:00
parent c6102ddca1
commit 7f32adbdd9
3 changed files with 13 additions and 4 deletions

View file

@ -50,6 +50,7 @@ typedef struct {
int isunglobal;
int isglobal;
int isoverlay;
int isnosizehint;
const char *monitor;
int offsetx;
int offsety;
@ -1415,6 +1416,7 @@ void parse_config_line(Config *config, const char *line) {
rule->isunglobal = -1;
rule->isglobal = -1;
rule->isoverlay = -1;
rule->isnosizehint = -1;
rule->isterm = -1;
rule->noswallow = -1;
rule->noblur = -1;
@ -1497,6 +1499,8 @@ void parse_config_line(Config *config, const char *line) {
rule->focused_opacity = atof(val);
} else if (strcmp(key, "isoverlay") == 0) {
rule->isoverlay = atoi(val);
} else if (strcmp(key, "isnosizehint") == 0) {
rule->isnosizehint = atoi(val);
} else if (strcmp(key, "isterm") == 0) {
rule->isterm = atoi(val);
} else if (strcmp(key, "noswallow") == 0) {