session-lock: handle output unplugging better

This commit is contained in:
tiosgz
2022-02-09 19:00:28 +00:00
committed by Isaac Freund
parent 33187e0b09
commit 49efbfe046
13 changed files with 70 additions and 51 deletions

View File

@ -48,7 +48,7 @@ pub fn backgroundColor(
server.config.background_color = try parseRgba(args[1]);
var it = server.root.outputs.first;
while (it) |node| : (it = node.next) node.data.damage.addWhole();
while (it) |node| : (it = node.next) node.data.damage.?.addWhole();
}
pub fn borderColorFocused(
@ -62,7 +62,7 @@ pub fn borderColorFocused(
server.config.border_color_focused = try parseRgba(args[1]);
var it = server.root.outputs.first;
while (it) |node| : (it = node.next) node.data.damage.addWhole();
while (it) |node| : (it = node.next) node.data.damage.?.addWhole();
}
pub fn borderColorUnfocused(
@ -76,7 +76,7 @@ pub fn borderColorUnfocused(
server.config.border_color_unfocused = try parseRgba(args[1]);
var it = server.root.outputs.first;
while (it) |node| : (it = node.next) node.data.damage.addWhole();
while (it) |node| : (it = node.next) node.data.damage.?.addWhole();
}
pub fn borderColorUrgent(
@ -90,7 +90,7 @@ pub fn borderColorUrgent(
server.config.border_color_urgent = try parseRgba(args[1]);
var it = server.root.outputs.first;
while (it) |node| : (it = node.next) node.data.damage.addWhole();
while (it) |node| : (it = node.next) node.data.damage.?.addWhole();
}
pub fn setCursorWarp(