kde, gnome: join with blocking event loop
This commit is contained in:
parent
9ce953ef09
commit
d8d110018b
2 changed files with 2 additions and 9 deletions
|
|
@ -14,7 +14,6 @@ use crate::wayland::Dispatcher;
|
||||||
use polling::Event;
|
use polling::Event;
|
||||||
use polling::Events;
|
use polling::Events;
|
||||||
use polling::Poller;
|
use polling::Poller;
|
||||||
use std::future::pending;
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
use tokio::task;
|
use tokio::task;
|
||||||
|
|
@ -92,7 +91,5 @@ async fn main()
|
||||||
|
|
||||||
dispatcher.dispatch_timers();
|
dispatcher.dispatch_timers();
|
||||||
}
|
}
|
||||||
});
|
}).await.unwrap();
|
||||||
|
|
||||||
pending::<()>().await;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mod core;
|
mod core;
|
||||||
// mod libei;
|
|
||||||
mod wayland;
|
mod wayland;
|
||||||
|
|
||||||
use ashpd::desktop::PersistMode;
|
use ashpd::desktop::PersistMode;
|
||||||
|
|
@ -15,7 +14,6 @@ use crate::wayland::Dispatcher;
|
||||||
use polling::Event;
|
use polling::Event;
|
||||||
use polling::Events;
|
use polling::Events;
|
||||||
use polling::Poller;
|
use polling::Poller;
|
||||||
use std::future::pending;
|
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
use reis::ei::Context;
|
use reis::ei::Context;
|
||||||
use reis::ei::handshake::ContextType;
|
use reis::ei::handshake::ContextType;
|
||||||
|
|
@ -96,7 +94,5 @@ async fn main()
|
||||||
|
|
||||||
dispatcher.dispatch_timers();
|
dispatcher.dispatch_timers();
|
||||||
}
|
}
|
||||||
});
|
}).await.unwrap();
|
||||||
|
|
||||||
pending::<()>().await;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue