render: damage on background/border color change
This commit is contained in:
parent
3405e2a87c
commit
5daec347c0
1 changed files with 9 additions and 0 deletions
|
@ -46,6 +46,9 @@ pub fn backgroundColor(
|
||||||
if (args.len > 2) return Error.TooManyArguments;
|
if (args.len > 2) return Error.TooManyArguments;
|
||||||
|
|
||||||
server.config.background_color = try parseRgba(args[1]);
|
server.config.background_color = try parseRgba(args[1]);
|
||||||
|
|
||||||
|
var it = server.root.outputs.first;
|
||||||
|
while (it) |node| : (it = node.next) node.data.damage.addWhole();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn borderColorFocused(
|
pub fn borderColorFocused(
|
||||||
|
@ -58,6 +61,9 @@ pub fn borderColorFocused(
|
||||||
if (args.len > 2) return Error.TooManyArguments;
|
if (args.len > 2) return Error.TooManyArguments;
|
||||||
|
|
||||||
server.config.border_color_focused = try parseRgba(args[1]);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn borderColorUnfocused(
|
pub fn borderColorUnfocused(
|
||||||
|
@ -70,6 +76,9 @@ pub fn borderColorUnfocused(
|
||||||
if (args.len > 2) return Error.TooManyArguments;
|
if (args.len > 2) return Error.TooManyArguments;
|
||||||
|
|
||||||
server.config.border_color_unfocused = try parseRgba(args[1]);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse a color in the format #RRGGBB or #RRGGBBAA
|
/// Parse a color in the format #RRGGBB or #RRGGBBAA
|
||||||
|
|
Loading…
Reference in a new issue