mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-10 11:04:10 -04:00
Merge pull request #1137 from WeraPea/reverse-monitorrule-order
opt: reverse monitorrule apply order
This commit is contained in:
commit
63fc2e67ec
1 changed files with 1 additions and 4 deletions
|
|
@ -4073,10 +4073,7 @@ void reapply_monitor_rules(void) {
|
||||||
if (!m->wlr_output->enabled)
|
if (!m->wlr_output->enabled)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (ji = 0; ji < config.monitor_rules_count; ji++) {
|
for (ji = config.monitor_rules_count - 1; ji >= 0; ji--) {
|
||||||
if (config.monitor_rules_count < 1)
|
|
||||||
break;
|
|
||||||
|
|
||||||
mr = &config.monitor_rules[ji];
|
mr = &config.monitor_rules[ji];
|
||||||
|
|
||||||
if (monitor_matches_rule(m, mr)) {
|
if (monitor_matches_rule(m, mr)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue