mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-22 06:46:35 -04:00
opt: dont apply viewback dispatch when no tag change
This commit is contained in:
parent
700a5c452b
commit
60f31cd1bf
1 changed files with 8 additions and 4 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -6317,10 +6317,14 @@ void view_in_mon(const Arg *arg, bool want_animation, Monitor *m,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg->ui == UINT32_MAX) {
|
if (arg->ui == UINT32_MAX) {
|
||||||
m->pertag->prevtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
if (m->tagset[0] != m->tagset[1]) {
|
||||||
m->seltags ^= 1; /* toggle sel tagset */
|
m->pertag->prevtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
||||||
m->pertag->curtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
m->seltags ^= 1; /* toggle sel tagset */
|
||||||
goto toggleseltags;
|
m->pertag->curtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
||||||
|
goto toggleseltags;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
|
if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue