1
0
Fork 0
forked from wry/wry

config: allow disabling color-management

This commit is contained in:
Julian Orth 2025-02-26 16:16:38 +01:00
parent c66f5798b7
commit 248eb324a5
24 changed files with 388 additions and 9 deletions

View file

@ -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);