mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-09 10:07:13 -05:00
fix: curtag overflow when view arg is -1 in view dispatch
This commit is contained in:
parent
559de3c66b
commit
068ec120de
1 changed files with 2 additions and 2 deletions
|
|
@ -5639,9 +5639,9 @@ void view_in_mon(const Arg *arg, bool want_animation, Monitor *m,
|
|||
}
|
||||
|
||||
if (arg->ui == UINT32_MAX) {
|
||||
m->pertag->prevtag = m->tagset[m->seltags];
|
||||
m->pertag->prevtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
||||
m->seltags ^= 1; /* toggle sel tagset */
|
||||
m->pertag->curtag = m->tagset[m->seltags];
|
||||
m->pertag->curtag = get_tags_first_tag_num(m->tagset[m->seltags]);
|
||||
goto toggleseltags;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue