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.

Merge upstream and preserve parked taskbar recovery for right-edge dock

Atharv Tamboli85f8d149a432
diff --cc crates/rf-shellguard/src/tbwork.rs
index e8d3e07a,3834f867..dbd0e955
--- a/crates/rf-shellguard/src/tbwork.rs
+++ b/crates/rf-shellguard/src/tbwork.rs
@@@ -104,16 -96,12 +110,19 @@@ pub fn side_of(monitor: [i32; 4], bar:
}
}
-/// The monitor less the strip of a bar on its bottom edge: what the work area is with only that taskbar reserving room.
+/// The work area with only an identified edge taskbar reserving room.
pub fn without_strip(monitor: [i32; 4], bar: [i32; 4]) -> [i32; 4] {
+ if parked_bottom(monitor, bar) {
+ return monitor;
+ }
- [monitor[0], monitor[1], monitor[2], bar[1]]
+ let [l, t, r, b] = monitor;
+ match side_of(monitor, bar) {
+ Some(Side::Left) => [bar[2], t, r, b],
+ Some(Side::Top) => [l, bar[3], r, b],
+ Some(Side::Right) => [l, t, bar[0], b],
+ Some(Side::Bottom) => [l, t, r, bar[1]],
+ None => monitor,
+ }
}
/// The work area WE want on a monitor: the primary one keeps a band at the bottom when the dock reserves one (`band`: its thickness