implement wlr-gamma-control-unstable-v1
This commit is contained in:
parent
11b3f08514
commit
b1db715a90
26 changed files with 475 additions and 21 deletions
|
|
@ -46,6 +46,7 @@ pub fn handle(state: &Rc<State>, connector: &Rc<dyn Connector>) {
|
|||
format: XRGB8888,
|
||||
color_space: Default::default(),
|
||||
eotf: Default::default(),
|
||||
gamma_lut: None,
|
||||
};
|
||||
let id = connector.id();
|
||||
let name = Rc::new(connector.kernel_id().to_string());
|
||||
|
|
@ -270,6 +271,7 @@ impl ConnectorHandler {
|
|||
ext_workspace_groups: Default::default(),
|
||||
pinned: Default::default(),
|
||||
tearing: Default::default(),
|
||||
active_zwlr_gamma_control: Default::default(),
|
||||
});
|
||||
on.update_visible();
|
||||
on.update_rects();
|
||||
|
|
@ -421,6 +423,9 @@ impl ConnectorHandler {
|
|||
}
|
||||
self.state
|
||||
.remove_output_scale(on.global.persistent.scale.get());
|
||||
if let Some(zwlr_gamma_control) = on.active_zwlr_gamma_control.take() {
|
||||
zwlr_gamma_control.send_failed();
|
||||
}
|
||||
on.clear();
|
||||
let _ = self.state.remove_global(&global);
|
||||
let _ = self.state.remove_global(&tray);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue