output-transactions: unify state application after transactions
This commit is contained in:
parent
a52986f3f4
commit
3c1475041f
5 changed files with 54 additions and 25 deletions
|
|
@ -849,12 +849,7 @@ impl OutputNode {
|
|||
self.state.tree_changed();
|
||||
}
|
||||
|
||||
pub fn update_state(self: &Rc<Self>, state: BackendConnectorState) {
|
||||
let old = self.global.connector.state.get();
|
||||
if old.serial >= state.serial {
|
||||
return;
|
||||
}
|
||||
self.global.connector.state.set(state);
|
||||
pub fn update_state(self: &Rc<Self>, old: BackendConnectorState, state: BackendConnectorState) {
|
||||
self.update_btf_and_bcs(state.transfer_function, state.color_space);
|
||||
if old.vrr != state.vrr {
|
||||
self.schedule.set_vrr_enabled(state.vrr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue