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

@ -138,7 +138,7 @@ fn handleLockSurfacesTimeout(manager: *LockManager) c_int {
manager.state = .waiting_for_blank;
{
var it = server.root.outputs.first;
var it = server.root.active_outputs.first;
while (it) |node| : (it = node.next) {
const output = &node.data;
@ -157,7 +157,7 @@ pub fn maybeLock(manager: *LockManager) void {
var all_outputs_blanked = true;
var all_outputs_rendered_lock_surface = true;
{
var it = server.root.outputs.first;
var it = server.root.active_outputs.first;
while (it) |node| : (it = node.next) {
const output = &node.data;
switch (output.lock_render_state) {
@ -205,7 +205,7 @@ fn handleUnlock(listener: *wl.Listener(void)) void {
log.info("session unlocked", .{});
{
var it = server.root.outputs.first;
var it = server.root.active_outputs.first;
while (it) |node| : (it = node.next) {
const output = &node.data;