From 1a5a4501ee501b3155295cbfccc1c992b5ec9c01 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 20 May 2025 16:12:54 -0600 Subject: [PATCH] Desktop will not show DnD indicator, fixes #981 --- src/tab.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 64ea73b..b3243bf 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -3804,7 +3804,8 @@ impl Tab { .on_enter(move |_, _, _| Message::DndEnter(location2.clone())) .on_leave(move || Message::DndLeave(location3.clone())), ); - if is_dnd_hovered { + // Desktop will not show DnD indicator + if is_dnd_hovered && !matches!(self.mode, Mode::Desktop) { container = container.style(|t| { let mut a = widget::container::Style::default(); let t = t.cosmic(); @@ -5106,7 +5107,10 @@ impl Tab { .height(Length::Fill) .width(Length::Fill); - if self.dnd_hovered.as_ref().map(|(l, _)| l) == Some(&tab_location) { + // Desktop will not show DnD indicator + if self.dnd_hovered.as_ref().map(|(l, _)| l) == Some(&tab_location) + && !matches!(self.mode, Mode::Desktop) + { tab_view = tab_view.style(|t| { let mut a = widget::container::Style::default(); let c = t.cosmic();