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
99cf09cb08
commit
da68edcbb6
1 changed files with 4 additions and 4 deletions
|
|
@ -5451,13 +5451,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