From 0ed62fc0f673d87e1431e8ece4f6603356f9930c Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Fri, 23 Aug 2024 23:03:20 -0500 Subject: [PATCH] cargo fix Signed-off-by: Ryan Brue --- src/app_tray/mod.rs | 21 +++++---------------- src/main.rs | 3 +-- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/app_tray/mod.rs b/src/app_tray/mod.rs index f9f0f10..e618198 100644 --- a/src/app_tray/mod.rs +++ b/src/app_tray/mod.rs @@ -5,10 +5,9 @@ use compositor::{Compositor, WaylandIncoming}; use desktop_entry::DesktopEntryCache; use freedesktop_desktop_entry::DesktopEntry; use iced::{ - alignment::Vertical, border::Radius, widget::{button, column, Container}, - window::{self, Id, Settings}, + window::Id, Background, Border, Element, Length, Task, Theme, }; @@ -121,20 +120,10 @@ impl<'a> AppTray<'a> { } pub fn subscription(&self) -> iced::Subscription { - iced::Subscription::batch(vec![ - self.backend - .wayland_subscription() - .map(AppTrayMessage::WaylandIn), - // listen_with(|e, _, _| match e { - // iced::Event::PlatformSpecific(event::PlatformSpecific::Wayland( - // event::wayland::Event::Seat(e, seat), - // )) => match e { - // event::wayland::SeatEvent::Enter => Some(AppTrayMessage::NewSeat(seat)), - // event::wayland::SeatEvent::Leave => Some(AppTrayMessage::RemovedSeat(seat)), - // }, - // _ => None, - // }), - ]) + iced::Subscription::batch(vec![self + .backend + .wayland_subscription() + .map(AppTrayMessage::WaylandIn)]) } } diff --git a/src/main.rs b/src/main.rs index e1b257f..a4146b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,8 +14,7 @@ use env_logger::Env; // Application, Settings, // }; -use iced::Settings; -use panel::{Panel, PanelFlags}; +use panel::Panel; pub mod app_tray; mod config;