1
0
Fork 0
forked from wry/wry

globals: send to old registries when exposed changes

This commit is contained in:
Julian Orth 2026-03-05 15:59:59 +01:00
parent 1ef1b5a607
commit 1570ba6b58
5 changed files with 81 additions and 21 deletions

View file

@ -736,6 +736,8 @@ impl State {
for sc in scs {
sc.do_destroy();
}
self.expose_new_singletons();
}
fn reload_cursors(&self) {
@ -1667,6 +1669,25 @@ impl State {
ws.desired_output.set(output.global.output_id.clone());
self.tree_changed();
}
fn expose_new_singletons(&self) {
self.globals.expose_new_singletons(self);
}
pub fn set_color_management_enabled(&self, enabled: bool) {
self.color_management_enabled.set(enabled);
self.expose_new_singletons();
}
pub fn set_primary_selection_enabled(&self, enabled: bool) {
self.enable_primary_selection.set(enabled);
self.expose_new_singletons();
}
pub fn set_explicit_sync_enabled(&self, enabled: bool) {
self.explicit_sync_enabled.set(enabled);
self.expose_new_singletons();
}
}
#[derive(Debug, Error)]