Wake shell status from service and hardware events

This commit is contained in:
Samuel Onoja committed 2026-10-02 08:33:37 +01:00
1 parent 8bb0b1da9c
commit 570984a39b
9 files changed
+380 -98

No files matched your search

+3 -10
View File
@@ -355,16 +355,9 @@ impl cosmic::Application for FereseShell {
Subscription::none()
},
self.notifications.subscription().map(Message::NotificationEvent),
if self.notifications.has_toasts() {
cosmic::iced::time::every(Duration::from_millis(if self.notifications.animating() {
16
} else {
250
}))
.map(|_| Message::NotificationTick)
} else {
Subscription::none()
},
self.notifications
.tick_subscription()
.map(|_| Message::NotificationTick),
event::listen_with(|event, _status, id| match &event {
Event::PlatformSpecific(PlatformSpecific::Wayland(wayland::Event::Frame(..))) => EFFECT_FRAME_PENDING
.load(Ordering::Relaxed)