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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user