1
0
Fork 0
forked from wry/wry

video: send feedback when brightness changes

This commit is contained in:
Julian Orth 2025-04-21 16:20:39 +02:00
parent 0ec3cdf608
commit 28cfa6a11f
4 changed files with 12 additions and 9 deletions

View file

@ -844,6 +844,10 @@ impl OutputNode {
if (old_btf, old_bcs) == (btf, bcs) {
return;
}
self.update_color_description();
}
fn update_color_description(&self) {
if self.global.update_color_description() {
self.state.damage(self.global.position());
if let Some(hc) = self.hardware_cursor.get() {
@ -857,6 +861,11 @@ impl OutputNode {
}
}
pub fn set_brightness(&self, brightness: Option<f64>) {
self.global.persistent.brightness.set(brightness);
self.update_color_description();
}
fn find_stacked_at(
&self,
stack: &LinkedList<Rc<dyn StackedNode>>,