update libcosmic
this uses a subsurface for the greeter menu and a text input that manages its own input string state
This commit is contained in:
parent
5527c9b866
commit
7918485651
9 changed files with 2440 additions and 1464 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use cosmic::iced::{
|
||||
futures::{channel::mpsc, SinkExt, StreamExt},
|
||||
subscription, Subscription,
|
||||
Subscription,
|
||||
};
|
||||
use logind_zbus::{
|
||||
manager::{InhibitType, ManagerProxy},
|
||||
|
|
@ -46,10 +46,9 @@ async fn inhibit(manager: &ManagerProxy<'_>) -> zbus::Result<OwnedFd> {
|
|||
pub fn subscription() -> Subscription<Message> {
|
||||
struct LogindSubscription;
|
||||
|
||||
subscription::channel(
|
||||
Subscription::run_with_id(
|
||||
TypeId::of::<LogindSubscription>(),
|
||||
16,
|
||||
|mut msg_tx| async move {
|
||||
cosmic::iced_futures::stream::channel(16, |mut msg_tx| async move {
|
||||
match handler(&mut msg_tx).await {
|
||||
Ok(()) => {}
|
||||
Err(err) => {
|
||||
|
|
@ -59,7 +58,7 @@ pub fn subscription() -> Subscription<Message> {
|
|||
}
|
||||
|
||||
std::process::exit(1);
|
||||
},
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue