globals: send to old registries when exposed changes
This commit is contained in:
parent
1ef1b5a607
commit
1570ba6b58
5 changed files with 81 additions and 21 deletions
21
src/state.rs
21
src/state.rs
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue