Skip to content

Commit 423d5d1

Browse files
committed
enable ovelap variable on features
1 parent 0b9cf43 commit 423d5d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#[cfg(all(feature = "wayland", feature = "desktop-applet"))]
55
use cosmic::iced::{
6-
Limits,
6+
Limits, Point,
77
event::wayland::{Event as WaylandEvent, OutputEvent, OverlapNotifyEvent},
88
platform_specific::runtime::wayland::layer_surface::{
99
IcedMargin, IcedOutput, SctkLayerSurfaceSettings,
@@ -20,7 +20,7 @@ use cosmic::{
2020
cosmic_config::{self, ConfigSet},
2121
cosmic_theme, executor,
2222
iced::{
23-
self, Alignment, Event, Length, Point, Rectangle, Size, Subscription,
23+
self, Alignment, Event, Length, Rectangle, Size, Subscription,
2424
clipboard::dnd::DndAction,
2525
core::SmolStr,
2626
event,
@@ -663,6 +663,7 @@ pub struct App {
663663
network_drive_input: String,
664664
#[cfg(feature = "notify")]
665665
notification_opt: Option<Arc<Mutex<notify_rust::NotificationHandle>>>,
666+
#[cfg(all(feature = "wayland", feature = "desktop-applet"))]
666667
overlap: HashMap<String, (window::Id, Rectangle)>,
667668
pending_operation_id: u64,
668669
pending_operations: BTreeMap<u64, (Operation, Controller)>,
@@ -2133,6 +2134,7 @@ impl Application for App {
21332134
network_drive_input: String::new(),
21342135
#[cfg(feature = "notify")]
21352136
notification_opt: None,
2137+
#[cfg(all(feature = "wayland", feature = "desktop-applet"))]
21362138
overlap: HashMap::new(),
21372139
pending_operation_id: 0,
21382140
pending_operations: BTreeMap::new(),

0 commit comments

Comments
 (0)