Skip to content

Commit

Permalink
cargo fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
  • Loading branch information
ryanabx committed Aug 24, 2024
1 parent 2cec98c commit 0ed62fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
21 changes: 5 additions & 16 deletions src/app_tray/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down Expand Up @@ -121,20 +120,10 @@ impl<'a> AppTray<'a> {
}

pub fn subscription(&self) -> iced::Subscription<AppTrayMessage> {
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)])
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ed62fc

Please sign in to comment.