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.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Taskbar: bound the band recovery and fit windows only after a real set (777)
gelenmedya3fc83aa3a62e
diff --git a/crates/rf-shellguard/src/tbctl.rs b/crates/rf-shellguard/src/tbctl.rsindex fcffc16c..48feaa2c 100644--- a/crates/rf-shellguard/src/tbctl.rs+++ b/crates/rf-shellguard/src/tbctl.rs@@ -197,7 +197,10 @@ impl Controller {guard_confirmed_ms: 0,// Explorer may recompute the work area whenever it likes: give it back at most 4 times a minute.throttle: Throttle::new(4, 60_000),- recovery_throttle: Throttle::new(1, 2_000),+ // One recovery a minute beyond `throttle` (issue 777: at one every two seconds, a full-screen app on the other monitor+ // made Explorer reset this work area as often, and the two fought without end: the taskbar and the dock flickered and+ // maximized windows were resized up and down).+ recovery_throttle: Throttle::new(1, 60_000),held: Vec::new(),throttle_said: false,band_owed: false,@@ -734,11 +737,6 @@ impl Controller {}fn set_changes(&mut self, w: &mut dyn HideWorld, now: u64, plan: &tbwork::EdgePlan) {- for m in &plan.monitors {- if m.verdict == tbwork::Verdict::AsWanted && m.target != m.rect {- w.repair_maximized(m.target);- }- }let mut changes = plan.changes();if changes.is_empty() {self.band_owed = false;@@ -773,6 +771,12 @@ impl Controller {Ok(()) => {self.held.retain(|(id, _)| *id != c.id);self.held.push((c.id.clone(), c.to));+ // Maximized windows that opened at the monitor's full size while the band was lost are fitted to it, only here,+ // where the work area was really set: before the throttle (until issue 777) they were fitted to a work area that+ // was then not written, and Explorer's grew them back.+ if c.from != c.to {+ w.repair_maximized(c.to);+ }}Err(e) => w.warn(&format!("taskbar: a work area could not be set: {e}")),}diff --git a/crates/rf-shellguard/src/tbedge_tests.rs b/crates/rf-shellguard/src/tbedge_tests.rsindex 336e7c36..1c8a87f2 100644--- a/crates/rf-shellguard/src/tbedge_tests.rs+++ b/crates/rf-shellguard/src/tbedge_tests.rs@@ -253,11 +253,14 @@ fn a_parked_taskbar_losing_the_entire_band_recovers_even_after_the_normal_throttc.tick(&mut w);assert_eq!(work_a(&w), [0, 0, 2560, 1362]);- w.monitors[0].work = A;- w.now += 1_000;- c.tick(&mut w);- assert_eq!(work_a(&w), A, "repeated recovery is rate limited");- w.now += 1_001;+ // Explorer taking it again and again (a full-screen app on another monitor, issue 777): no fight, one recovery a minute+ for _ in 0..20 {+ w.monitors[0].work = A;+ w.now += 2_000;+ c.tick(&mut w);+ assert_eq!(work_a(&w), A, "repeated recovery is rate limited");+ }+ w.now += 21_000;c.tick(&mut w);assert_eq!(work_a(&w), [0, 0, 2560, 1362]);}