chore: adapt to the changes in libcosmic
This commit is contained in:
parent
ff31b59b7d
commit
601e16af0e
3 changed files with 55 additions and 55 deletions
|
|
@ -389,7 +389,7 @@ pub enum Message {
|
|||
Session(String),
|
||||
Shutdown,
|
||||
Socket(SocketState),
|
||||
Surface(surface::Action),
|
||||
Surface(surface::Action<Message>),
|
||||
Suspend,
|
||||
Username(String),
|
||||
EnterUser(bool, String),
|
||||
|
|
@ -1309,9 +1309,7 @@ impl cosmic::Application for App {
|
|||
exclusive_zone: -1,
|
||||
size_limits: iced::Limits::NONE.min_width(1.0).min_height(1.0),
|
||||
}),
|
||||
cosmic::task::message(cosmic::Action::Cosmic(
|
||||
cosmic::app::Action::Surface(msg),
|
||||
)),
|
||||
cosmic::task::message(cosmic::Action::Surface(msg)),
|
||||
]);
|
||||
}
|
||||
OutputEvent::Removed => {
|
||||
|
|
@ -1659,9 +1657,7 @@ impl cosmic::Application for App {
|
|||
self.greetd_sender = Some(sender);
|
||||
}
|
||||
Message::Surface(a) => {
|
||||
return cosmic::task::message(cosmic::Action::Cosmic(
|
||||
cosmic::app::Action::Surface(a),
|
||||
));
|
||||
return cosmic::task::message(cosmic::Action::Surface(a));
|
||||
}
|
||||
Message::ScreenReader(enabled) => {
|
||||
if enabled
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ pub enum Message {
|
|||
KeyboardLayout(usize),
|
||||
Inhibit(Arc<OwnedFd>),
|
||||
Submit(String),
|
||||
Surface(surface::Action),
|
||||
Surface(surface::Action<Message>),
|
||||
Suspend,
|
||||
TimeAppletConfig(TimeAppletConfig),
|
||||
Error(String),
|
||||
|
|
@ -820,9 +820,7 @@ impl cosmic::Application for App {
|
|||
|
||||
if matches!(self.state, State::Locked { .. }) {
|
||||
return get_lock_surface(surface_id, output).chain({
|
||||
cosmic::task::message(cosmic::Action::Cosmic(
|
||||
cosmic::app::Action::Surface(msg),
|
||||
))
|
||||
cosmic::task::message(cosmic::Action::Surface(msg))
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -998,9 +996,7 @@ impl cosmic::Application for App {
|
|||
app.menu(subsurface_id).map(cosmic::Action::App)
|
||||
})),
|
||||
);
|
||||
commands.push(cosmic::task::message(cosmic::Action::Cosmic(
|
||||
cosmic::app::Action::Surface(msg),
|
||||
)));
|
||||
commands.push(cosmic::task::message(cosmic::Action::Surface(msg)));
|
||||
} else {
|
||||
tracing::error!("no rectangle for subsurface creation...");
|
||||
}
|
||||
|
|
@ -1165,9 +1161,7 @@ impl cosmic::Application for App {
|
|||
}
|
||||
}
|
||||
Message::Surface(a) => {
|
||||
return cosmic::task::message(cosmic::Action::Cosmic(
|
||||
cosmic::app::Action::Surface(a),
|
||||
));
|
||||
return cosmic::task::message(cosmic::Action::Surface(a));
|
||||
}
|
||||
}
|
||||
Task::none()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue