backend: remove Copy from BackendConnectorState
This commit is contained in:
parent
6db1f84cb2
commit
11b3f08514
14 changed files with 45 additions and 32 deletions
|
|
@ -637,7 +637,7 @@ impl MetalConnector {
|
|||
| FrontState::Connected { non_desktop: true } => return,
|
||||
FrontState::Connected { non_desktop: false } => {}
|
||||
}
|
||||
let mut state = *self.display.borrow().persistent.state.borrow();
|
||||
let mut state = self.display.borrow().persistent.state.borrow().clone();
|
||||
state.serial = self.state.backend_connector_state_serials.next();
|
||||
self.send_event(ConnectorEvent::State(state));
|
||||
}
|
||||
|
|
@ -1928,7 +1928,7 @@ impl MetalBackend {
|
|||
if dd.supports_bt2020 {
|
||||
color_spaces.push(BackendColorSpace::Bt2020);
|
||||
}
|
||||
let mut state = *dd.persistent.state.borrow();
|
||||
let mut state = dd.persistent.state.borrow().clone();
|
||||
state.serial = self.state.backend_connector_state_serials.next();
|
||||
connector.send_event(ConnectorEvent::Connected(MonitorInfo {
|
||||
modes,
|
||||
|
|
@ -2573,7 +2573,7 @@ impl MetalBackend {
|
|||
let mut tran = dev.create_transaction();
|
||||
for c in dev.connectors.lock().values() {
|
||||
let dd = &*c.display.borrow();
|
||||
let mut state = *dd.persistent.state.borrow();
|
||||
let mut state = dd.persistent.state.borrow().clone();
|
||||
let mut changed_any = false;
|
||||
if disable_non_default_format && state.format != XRGB8888 {
|
||||
state.format = XRGB8888;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue