kde, gnome: join with blocking event loop

This commit is contained in:
Richard Acayan 2024-11-29 17:53:23 -05:00
parent 9ce953ef09
commit d8d110018b
No known key found for this signature in database
GPG key ID: 0346F4894879DB73
2 changed files with 2 additions and 9 deletions

View file

@ -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;
} }

View file

@ -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;
} }