tearing-control: minor cleanups/style improvements

This commit also tweaks the riverctl interface to make the global
allow-tearing option apply only to tearing-control-v1 hints from
clients. The global option no longer affects tearing/no-tearing rules
explicitly created by the user.
This commit is contained in:
Isaac Freund
2024-08-15 11:42:38 +02:00
parent 066baa5753
commit f82b2f5816
6 changed files with 37 additions and 40 deletions

View File

@ -211,7 +211,7 @@ fn apply_tearing_rules() void {
if (view.destroying) continue;
if (server.config.rules.tearing.match(view)) |tearing| {
view.tearing_mode = if (tearing) .override_true else .override_false;
view.tearing_mode = if (tearing) .tearing else .no_tearing;
}
}
}