head-management: add brightness-info-v1 extension
This commit is contained in:
parent
1a306c4fa9
commit
e0f1dd549d
10 changed files with 136 additions and 3 deletions
|
|
@ -913,8 +913,14 @@ impl OutputNode {
|
|||
}
|
||||
|
||||
pub fn set_brightness(&self, brightness: Option<f64>) {
|
||||
self.global.persistent.brightness.set(brightness);
|
||||
self.update_color_description();
|
||||
let old = self.global.persistent.brightness.replace(brightness);
|
||||
if old != brightness {
|
||||
self.update_color_description();
|
||||
self.global
|
||||
.connector
|
||||
.head_managers
|
||||
.handle_brightness_change(brightness);
|
||||
}
|
||||
}
|
||||
|
||||
fn find_stacked_at(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue