config: allow disabling color-management
This commit is contained in:
parent
c66f5798b7
commit
248eb324a5
24 changed files with 388 additions and 9 deletions
|
|
@ -14,6 +14,7 @@ use {
|
|||
},
|
||||
leaks::Tracker,
|
||||
object::{Object, Version},
|
||||
state::State,
|
||||
wire::{
|
||||
WpColorManagerV1Id,
|
||||
wp_color_manager_v1::{SupportedIntent, *},
|
||||
|
|
@ -198,6 +199,10 @@ impl Global for WpColorManagerV1Global {
|
|||
fn version(&self) -> u32 {
|
||||
1
|
||||
}
|
||||
|
||||
fn exposed(&self, state: &State) -> bool {
|
||||
state.color_management_enabled.get()
|
||||
}
|
||||
}
|
||||
|
||||
simple_add_global!(WpColorManagerV1Global);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue