mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
opt: the tagset is current tagset when open window in ov mode
This commit is contained in:
parent
711498490b
commit
8a924494c6
1 changed files with 9 additions and 3 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -5097,9 +5097,15 @@ void setmon(Client *c, Monitor *m, uint32_t newtags, bool focus) {
|
||||||
/* Make sure window actually overlaps with the monitor */
|
/* Make sure window actually overlaps with the monitor */
|
||||||
reset_foreign_tolevel(c);
|
reset_foreign_tolevel(c);
|
||||||
resize(c, c->geom, 0);
|
resize(c, c->geom, 0);
|
||||||
c->tags =
|
if (!newtags && !m->isoverview) {
|
||||||
newtags ? newtags
|
c->tags = m->tagset[m->seltags];
|
||||||
: m->tagset[m->seltags]; /* assign tags of target monitor */
|
} else if (!newtags && m->isoverview) {
|
||||||
|
c->tags = m->ovbk_current_tagset;
|
||||||
|
} else if (newtags) {
|
||||||
|
c->tags = newtags;
|
||||||
|
} else {
|
||||||
|
c->tags = m->tagset[m->seltags];
|
||||||
|
}
|
||||||
setfloating(c, c->isfloating);
|
setfloating(c, c->isfloating);
|
||||||
setfullscreen(c, c->isfullscreen); /* This will call arrange(c->mon) */
|
setfullscreen(c, c->isfullscreen); /* This will call arrange(c->mon) */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue