backend: remove Copy from BackendConnectorState
This commit is contained in:
parent
6db1f84cb2
commit
11b3f08514
14 changed files with 45 additions and 32 deletions
|
|
@ -73,7 +73,7 @@ impl ZwlrOutputConfigurationV1 {
|
|||
}
|
||||
let mut tran = ConnectorTransaction::new(&self.client.state);
|
||||
for output in self.client.state.outputs.lock().values() {
|
||||
let mut state = output.connector.state.get();
|
||||
let mut state = output.connector.state.borrow().clone();
|
||||
match self.enabled_outputs.get(&output.connector.id) {
|
||||
None => {
|
||||
if self.configured_outputs.not_contains(&output.connector.id) {
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ impl ZwlrOutputManagerV1 {
|
|||
}
|
||||
};
|
||||
let mi = &output.monitor_info;
|
||||
let state = output.connector.state.get();
|
||||
let state_mode = output.connector.state.borrow().mode;
|
||||
let head_id = self.client.state.wlr_output_managers.head_ids.next();
|
||||
let mut modes_list = vec![];
|
||||
let mut modes = AHashMap::new();
|
||||
|
|
@ -140,7 +140,7 @@ impl ZwlrOutputManagerV1 {
|
|||
if modes.contains_key(mode) {
|
||||
continue;
|
||||
}
|
||||
let current = !have_current && *mode == state.mode;
|
||||
let current = !have_current && *mode == state_mode;
|
||||
if current {
|
||||
have_current = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue