mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-16 06:59:52 -05:00
opt: optimize code struct
This commit is contained in:
parent
53aff71837
commit
85f185c9a1
1 changed files with 4 additions and 4 deletions
|
|
@ -5407,13 +5407,13 @@ toggleseltags:
|
||||||
}
|
}
|
||||||
|
|
||||||
void view(const Arg *arg, bool want_animation) {
|
void view(const Arg *arg, bool want_animation) {
|
||||||
Monitor *m, *record_mon;
|
Monitor *m;
|
||||||
if (arg->i) {
|
if (arg->i) {
|
||||||
record_mon = selmon;
|
view_in_mon(arg, want_animation, selmon, true);
|
||||||
view_in_mon(arg, want_animation, record_mon, true);
|
|
||||||
wl_list_for_each(m, &mons, link) {
|
wl_list_for_each(m, &mons, link) {
|
||||||
if (!m->wlr_output->enabled || m == record_mon)
|
if (!m->wlr_output->enabled || m == selmon)
|
||||||
continue;
|
continue;
|
||||||
|
// only arrange, not change monitor focus
|
||||||
view_in_mon(arg, want_animation, m, false);
|
view_in_mon(arg, want_animation, m, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue