backend: take initial backend state from backend
This commit is contained in:
parent
1a9753847a
commit
d321e888be
8 changed files with 88 additions and 71 deletions
|
|
@ -867,6 +867,10 @@ impl Connector for MetalConnector {
|
|||
fb.locked
|
||||
}
|
||||
|
||||
fn state(&self) -> BackendConnectorState {
|
||||
self.display.borrow().persistent.state.borrow().clone()
|
||||
}
|
||||
|
||||
fn caps(&self) -> ConnectorCaps {
|
||||
CONCAP_CONNECTOR | CONCAP_MODE_SETTING | CONCAP_PHYSICAL_DISPLAY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue