Root: rename field outputs to active_outputs

Although this list only including active outputs was already documented,
making this explicit in its name reduces confusion and debugging
overhead.
This commit is contained in:
tiosgz
2023-08-03 15:12:56 +00:00
parent bbd21c1637
commit 57186fced3
6 changed files with 30 additions and 30 deletions

View File

@ -69,7 +69,7 @@ pub fn create(client: *wl.Client, version: u32, id: u32, output: *Output, namesp
/// Returns true if the given namespace is already in use on the given output
/// or on another output by a different client.
fn namespaceInUse(namespace: []const u8, output: *Output, client: *wl.Client) bool {
var output_it = server.root.outputs.first;
var output_it = server.root.active_outputs.first;
while (output_it) |output_node| : (output_it = output_node.next) {
var layout_it = output_node.data.layouts.first;
if (output_node.data.wlr_output == output.wlr_output) {