config: generate graphics-initialized event in the frontend
This commit is contained in:
parent
c30f4d7266
commit
5e21e00059
17 changed files with 56 additions and 29 deletions
|
|
@ -6,8 +6,8 @@ use {
|
|||
crate::{
|
||||
async_engine::{AsyncError, AsyncFd, SpawnedFuture},
|
||||
backend::{
|
||||
Backend, BackendEvent, InputDevice, InputDeviceAccelProfile, InputDeviceCapability,
|
||||
InputDeviceId, InputEvent, KeyState, TransformMatrix,
|
||||
Backend, InputDevice, InputDeviceAccelProfile, InputDeviceCapability, InputDeviceId,
|
||||
InputEvent, KeyState, TransformMatrix,
|
||||
},
|
||||
backends::metal::video::{MetalDrmDevice, MetalRenderContext, PendingDrmDevice},
|
||||
dbus::{DbusError, SignalHandler},
|
||||
|
|
@ -141,9 +141,6 @@ impl MetalBackend {
|
|||
if let Err(e) = self.enumerate_devices() {
|
||||
return Err(MetalError::Enumerate(Box::new(e)));
|
||||
}
|
||||
self.state
|
||||
.backend_events
|
||||
.push(BackendEvent::GraphicsInitialized);
|
||||
pending().await
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -266,10 +266,6 @@ pub struct XBackend {
|
|||
|
||||
impl XBackend {
|
||||
async fn run(self: Rc<Self>) -> Result<(), XBackendError> {
|
||||
self.state
|
||||
.backend_events
|
||||
.push(BackendEvent::GraphicsInitialized);
|
||||
|
||||
self.query_devices(INPUT_DEVICE_ALL_MASTER).await?;
|
||||
|
||||
let _events = self.state.eng.spawn(self.clone().event_handler());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue