Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

Taskbar: a parked taskbar counts on the primary monitor, with several monitors too

gelenmedya3f6277384978
diff --git a/crates/rf-shellguard/src/tbwork.rs b/crates/rf-shellguard/src/tbwork.rs
index b8af0569..547ef900 100644
--- a/crates/rf-shellguard/src/tbwork.rs
+++ b/crates/rf-shellguard/src/tbwork.rs
@@ -255,9 +255,11 @@ pub fn plan_edge_bands_on(monitors: &[MonitorGeom], bars: &[[i32; 4]], band: Opt
let mut plan = MonitorPlan { id: m.id.clone(), primary: m.primary, rect: m.rect, work_now: m.work, target, user_work: m.rect, band_held: false, verdict: Verdict::NotOurs };
if let Some(bar) = bar {
plan.verdict = Verdict::Foreign;
- // On a single display a parked bottom taskbar can leave the entire work area exposed.
- // Never infer ownership from parked secondary taskbars (#777), or from an unknown reservation.
- let parked = monitors.len() == 1 && m.primary
+ // The primary monitor's taskbar, parked below the screen when it hides itself (1.0.7 turns Explorer's auto-hide on while
+ // the dock hides the taskbar), leaves the whole monitor as the work area: the dock's band is taken back there, with one
+ // monitor or several. A parked SECONDARY taskbar is never taken for ours: Explorer parks those while an app is full screen
+ // on another monitor, and taking them made the dock and Explorer fight over that monitor (issue 777).
+ let parked = m.primary
&& near(bar[0], m.rect[0]) && near(bar[2], m.rect[2])
&& (1..=8).contains(&(m.rect[3] - bar[1]))
&& bar[3] > m.rect[3] + 1 && bar[3] - bar[1] < (m.rect[3] - m.rect[1]) / 2;