chore: adapt to the changes in libcosmic

This commit is contained in:
Hojjat 2026-09-10 16:24:12 -06:00 • committed by Michael Murphy
parent ff31b59b7d
commit 601e16af0e
3 changed files with 55 additions and 55 deletions

View file

@ -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()