chore: udpate libcosmic

This commit is contained in:
Ashley Wulber 2025-03-14 13:14:51 -04:00 committed by Ashley Wulber
parent 61d1d1b91d
commit c54ddeb38a
17 changed files with 139 additions and 426 deletions

View file

@ -23,7 +23,7 @@ use cosmic::{
window::{self},
Length, Limits, Subscription,
},
surface_message::{MessageWrapper, SurfaceMessage},
surface,
widget::{autosize::autosize, mouse_area},
Task,
};
@ -83,22 +83,7 @@ enum Message {
Closed(window::Id),
OpenOverflowPopup,
CloseOverflowPopup,
Surface(SurfaceMessage),
}
impl From<Message> for MessageWrapper<Message> {
fn from(value: Message) -> Self {
match value {
Message::Surface(s) => MessageWrapper::Surface(s),
m => MessageWrapper::Message(m),
}
}
}
impl From<SurfaceMessage> for Message {
fn from(value: SurfaceMessage) -> Self {
Message::Surface(value)
}
Surface(surface::Action),
}
impl cosmic::Application for Minimize {
@ -264,6 +249,7 @@ impl cosmic::Application for Minimize {
)),
data.name.clone(),
self.overflow_popup.is_some(),
Message::Surface,
)
.into()
});