mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-15 08:21:41 -04:00
修复tag rule
修复tag rule
This commit is contained in:
parent
2dfc4fda11
commit
91d37b1d09
2 changed files with 14 additions and 7 deletions
13
maomao.c
13
maomao.c
|
|
@ -1201,7 +1201,6 @@ arrange(Monitor *m, bool want_animation) {
|
|||
|
||||
if (!m->wlr_output->enabled)
|
||||
return;
|
||||
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c->iskilling)
|
||||
|
|
@ -2073,11 +2072,20 @@ createmon(struct wl_listener *listener, void *data) {
|
|||
m->pertag = calloc(1, sizeof(Pertag));
|
||||
m->pertag->curtag = m->pertag->prevtag = 1;
|
||||
|
||||
for (i = 0; i <= LENGTH(tags); i++) {
|
||||
for (i = 1; i <= LENGTH(tags); i++) {
|
||||
m->pertag->nmasters[i] = m->nmaster;
|
||||
m->pertag->mfacts[i] = m->mfact;
|
||||
|
||||
m->pertag->ltidxs[i] = m->lt;
|
||||
|
||||
if(strlen(config.tags[i-1].layout_name) > 0) {
|
||||
for (jk = 0; jk < LENGTH(layouts); jk++) {
|
||||
if(strcmp(layouts[jk].name , config.tags[i-1].layout_name) == 0) {
|
||||
m->pertag->ltidxs[i] = &layouts[jk];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
printstatus();
|
||||
|
|
@ -5556,7 +5564,6 @@ void view(const Arg *arg, bool want_animation) {
|
|||
if (!selmon || (arg->ui != ~0 && selmon->isoverview)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((selmon->tagset[selmon->seltags] & arg->ui & TAGMASK) != 0) {
|
||||
want_animation = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue