mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
feat: add isglobal to winrule
This commit is contained in:
parent
973d40f0df
commit
1098c15f27
2 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ typedef struct {
|
||||||
const char *animation_type_close;
|
const char *animation_type_close;
|
||||||
int isnoborder;
|
int isnoborder;
|
||||||
int isopensilent;
|
int isopensilent;
|
||||||
|
int isglobal;
|
||||||
int monitor;
|
int monitor;
|
||||||
int offsetx;
|
int offsetx;
|
||||||
int offsety;
|
int offsety;
|
||||||
|
|
@ -1059,6 +1060,7 @@ void parse_config_line(Config *config, const char *line) {
|
||||||
rule->isfullscreen = -1;
|
rule->isfullscreen = -1;
|
||||||
rule->isnoborder = -1;
|
rule->isnoborder = -1;
|
||||||
rule->isopensilent = -1;
|
rule->isopensilent = -1;
|
||||||
|
rule->isglobal = -1;
|
||||||
rule->isterm = -1;
|
rule->isterm = -1;
|
||||||
rule->noswallow = -1;
|
rule->noswallow = -1;
|
||||||
rule->monitor = -1;
|
rule->monitor = -1;
|
||||||
|
|
@ -1117,6 +1119,8 @@ void parse_config_line(Config *config, const char *line) {
|
||||||
rule->isnoborder = atoi(val);
|
rule->isnoborder = atoi(val);
|
||||||
} else if (strcmp(key, "isopensilent") == 0) {
|
} else if (strcmp(key, "isopensilent") == 0) {
|
||||||
rule->isopensilent = atoi(val);
|
rule->isopensilent = atoi(val);
|
||||||
|
} else if (strcmp(key, "isglobal") == 0) {
|
||||||
|
rule->isglobal = atoi(val);
|
||||||
} else if (strcmp(key, "isterm") == 0) {
|
} else if (strcmp(key, "isterm") == 0) {
|
||||||
rule->isterm = atoi(val);
|
rule->isterm = atoi(val);
|
||||||
} else if (strcmp(key, "noswallow") == 0) {
|
} else if (strcmp(key, "noswallow") == 0) {
|
||||||
|
|
|
||||||
|
|
@ -1831,6 +1831,7 @@ applyrules(Client *c) {
|
||||||
: c->scroller_proportion;
|
: c->scroller_proportion;
|
||||||
c->isnoborder = r->isnoborder > 0 ? r->isnoborder : c->isnoborder;
|
c->isnoborder = r->isnoborder > 0 ? r->isnoborder : c->isnoborder;
|
||||||
c->isopensilent = r->isopensilent > 0 ? r->isopensilent : c->isopensilent;
|
c->isopensilent = r->isopensilent > 0 ? r->isopensilent : c->isopensilent;
|
||||||
|
c->isglobal = r->isglobal > 0 ? r->isglobal : c->isglobal;
|
||||||
newtags = r->tags > 0 ? r->tags | newtags : newtags;
|
newtags = r->tags > 0 ? r->tags | newtags : newtags;
|
||||||
i = 0;
|
i = 0;
|
||||||
wl_list_for_each(m, &mons, link) if (r->monitor == i++) mon = m;
|
wl_list_for_each(m, &mons, link) if (r->monitor == i++) mon = m;
|
||||||
|
|
@ -1884,6 +1885,7 @@ applyrules(Client *c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setfullscreen(c, fullscreen_state_backup);
|
setfullscreen(c, fullscreen_state_backup);
|
||||||
|
setborder_color(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void // 17
|
void // 17
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue