mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: optimize code struct
This commit is contained in:
parent
4ae9ff3ac8
commit
e4c0809d08
1 changed files with 2 additions and 5 deletions
|
|
@ -5368,7 +5368,7 @@ urgent(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
void view_in_mon(const Arg *arg, bool want_animation, Monitor *m) {
|
||||
unsigned int i, tmptag;
|
||||
unsigned int tmptag;
|
||||
|
||||
if (!m || (arg->ui != (~0 & TAGMASK) && m->isoverview)) {
|
||||
return;
|
||||
|
|
@ -5398,10 +5398,7 @@ void view_in_mon(const Arg *arg, bool want_animation, Monitor *m) {
|
|||
if (arg->ui == (~0 & TAGMASK))
|
||||
m->pertag->curtag = 0;
|
||||
else {
|
||||
for (i = 0; !(arg->ui & 1 << i) && i < LENGTH(tags) && arg->ui != 0;
|
||||
i++)
|
||||
;
|
||||
m->pertag->curtag = i >= LENGTH(tags) ? LENGTH(tags) : i + 1;
|
||||
m->pertag->curtag = get_tags_first_tag_num(arg->ui);
|
||||
}
|
||||
|
||||
m->pertag->prevtag =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue