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

@ -486,7 +486,7 @@ impl JayRandrRequestHandler for JayRandr {
let Some(c) = self.get_output_node(req.output) else {
return Ok(());
};
c.global.set_brightness(Some(req.lux));
c.set_brightness(Some(req.lux));
Ok(())
}
@ -498,7 +498,7 @@ impl JayRandrRequestHandler for JayRandr {
let Some(c) = self.get_output_node(req.output) else {
return Ok(());
};
c.global.set_brightness(None);
c.set_brightness(None);
Ok(())
}
}

View file

@ -381,12 +381,6 @@ impl WlOutputGlobal {
self.linear_color_description.set(cd_linear.clone());
self.color_description.set(cd.clone()).id != cd.id
}
pub fn set_brightness(&self, brightness: Option<f64>) {
self.persistent.brightness.set(brightness);
self.update_color_description();
self.state.damage(self.pos.get());
}
}
global_base!(WlOutputGlobal, WlOutput, WlOutputError);