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 auto-hide is on again: Explorer keeps the dock's bands itself
gelenmedya4745106d4b72
diff --git a/crates/rf-app/src/shell/taskbar_hide.rs b/crates/rf-app/src/shell/taskbar_hide.rsindex f1feaf9b..1387f47c 100644--- a/crates/rf-app/src/shell/taskbar_hide.rs+++ b/crates/rf-app/src/shell/taskbar_hide.rs@@ -180,13 +180,12 @@ fn start(cx: &mut App) {// The bottom edge waits for the dock's word: a hider that starts before the dock has said what its band is would give the whole// monitor to maximised windows over the dock and set the work area a second time when the band arrives.let band = current_band();- // Explorer's own auto-hide is NOT turned on (1.0.7 to 1.0.10 did, so that the taskbar was out of sight at sign-in before- // rustyfiles had started). A taskbar that hides itself reserves nothing and slides in and out, and at each of those moves, and- // whenever any program's toolbar changes, Explorer computes the work areas anew from its own list, which the room we keep for- // the dock is not in: maximised windows went under the dock until the answer's pause was over, and a second monitor's dock was- // never given its room (`rf_win::taskbar_autohide` has the measurement). A value those versions turned on is put back first,- // before the taskbar is hidden, so that the hide starts from a taskbar that keeps its strip.- release_autohide_now();+ // Explorer's own auto-hide too (`rf_win::taskbar_autohide`; a message to Explorer, so off the interface thread). Two reasons: at+ // the next sign-in the taskbar is out of sight before rustyfiles has started, and a taskbar that hides itself reserves no strip,+ // so the dock's bands can be what Explorer itself keeps (`rf_shellguard::tbctl`, `explorer_keeps_bands`): the work areas are then+ // Explorer's own arithmetic and nothing of ours can be taken back.+ let dir = state_dir.clone();+ let _ = std::thread::Builder::new().name("taskbar-autohide".into()).spawn(move || rf_win::taskbar_autohide::engage(&dir));let cfg = Config { state_dir, guard_exe: taskbar_hide::guard_next_to_exe(), band_px: band.flatten(), band_known: band.is_some() };match TaskbarHider::start_on(cfg, crate::dock::dock_edge(cx)) {Ok(hider) => {diff --git a/crates/rf-win/src/taskbar_autohide.rs b/crates/rf-win/src/taskbar_autohide.rsindex 99a5f767..0e223049 100644--- a/crates/rf-win/src/taskbar_autohide.rs+++ b/crates/rf-win/src/taskbar_autohide.rs@@ -1,16 +1,16 @@//! Explorer's own "Automatically hide the taskbar" while the Dock hides the taskbar.//!-//! NOT TURNED ON ANY MORE (since 1.1.0); what is left in use is [`release`], which puts back the value 1.0.7 to 1.0.10 changed.-//! Why it was turned on: the Dock hides Explorer's taskbar windows once it runs, but at sign-in Explorer is up some seconds before-//! rustyfiles, and its taskbar was seen every time until the Dock came. With Explorer's own auto-hide on, Explorer starts with its-//! taskbar already out of sight, so the Dock is the first bar seen.-//! Why it is off again: the Dock keeps its room by setting the work area itself, and Explorer computes the work areas anew from its-//! own toolbar list every time an auto-hiding taskbar slides in or out and every time any program's toolbar changes. Measured on a-//! PC with two monitors (2026-12-04, 1.0.10): after a dock start the primary monitor's work area went back to the whole monitor-//! five times in eight seconds and stayed there until the answer's growing pause was over (up to a minute); the second monitor,-//! whose auto-hiding taskbar parks below the screen, was never given the dock's room at all. Maximised windows reached under the-//! dock for as long (issues 883, 888, 999). With auto-hide off on the same PC both monitors kept their room through every-//! recomputation that was forced. [`engage`] stays for a design in which Explorer itself keeps the dock's band.+//! WHY: the Dock hides Explorer's taskbar windows once it runs, but at sign-in Explorer is up some seconds before rustyfiles, and+//! its taskbar was seen every time until the Dock came. With Explorer's own auto-hide on, Explorer starts with its taskbar already+//! out of sight, so the Dock is the first bar seen.+//!+//! WHAT IT MEANS FOR THE DOCK'S ROOM. A taskbar that hides itself reserves no strip, and it slides in and out; at each of those+//! moves, and whenever any program's toolbar changes, Explorer computes the work areas anew from its own toolbar list. 1.0.7 to 1.0.10+//! turned auto-hide on and still kept the dock's room by setting the work area themselves: measured on a PC with two monitors+//! (2026-12-04), that rectangle was wiped five times in the eight seconds after a dock start and came back only after the answer's+//! growing pause (up to a minute), and the second monitor never got its room at all (issues 883, 888, 999). While auto-hide is on+//! the dock therefore keeps its bands REGISTERED WITH EXPLORER, on every monitor (`rf_shellguard::tbctl`, `explorer_keeps_bands`;+//! `rf_win::dock::system`), and sets no work area: on the same PC those bands held through every recomputation that was forced.//!//! The rule: [`engage`] (the hide is wanted) notes the user's own value once, in `taskbar-autohide-before` in the settings folder,//! and turns auto-hide on; [`release`] (the hide was turned off, the Dock was switched off or told to stop, or rustyfiles isdiff --git a/docs/design/taskbar-hide.md b/docs/design/taskbar-hide.mdindex 5ce98513..0bc6fb6e 100644--- a/docs/design/taskbar-hide.md+++ b/docs/design/taskbar-hide.md@@ -285,6 +285,21 @@ So while Explorer's taskbar hides itself (`HideWorld::explorer_keeps_bands`, `ABWhen the auto-hide is off (it could not be turned on, or the user's Explorer refuses it) the rules of the section above applyunchanged, and the other docks give their registrations back first.+**The dock's own toolbar messages go straight to Explorer** (`rf_win::dock::system`, `bar_message`), not through `SHAppBarMessage`.+`SHAppBarMessage` sends to the first window of class `Shell_TrayWnd`, and while the tray host runs that window is ours, in the dock's+own process. Measured on 2026-12-04: the messages that ask for an answer (`ABM_QUERYPOS`, `ABM_SETPOS`) then came back at once with+the rectangle that was sent and Explorer changed nothing. A band registered above the visible taskbar (before the tray host was up)+stayed there when the taskbar hid itself, with the dock at the bottom: 48 px of nothing above the dock, the gap seen after updates.+The same calls from another program through the same tray host worked, and so did the dock's own with a relay of another process+in front (the `tray_spy` example); registering and removing, which carry no answer, always worked. Why this process's are lost was+not found. shell32 allocates the answer's memory in the process that owns the tray window it found and names that process in the+request (read from the spy's log; `tray_wire::appbar` has the layout and a request as it was seen), so the dock builds the same+request for Explorer's own taskbar window and sends it there, with a 4 s limit. The first use asks where the taskbar is, which+changes nothing: a Windows that does not answer that falls back to `SHAppBarMessage`.++Tried on the same PC with a test dock: the gap closed within 0.7 to 3 s of a start, a changed dock size was followed by both+monitors' work areas within a second, and toolbars of another program coming and going on either monitor took nothing of ours.+## Read-only probe`cargo run --offline -p rf-shellguard --example taskbar_probe` prints the monitors (rectangle and work area), the taskbar-class