Skip to content

Hide the dock while a window covers it - #18140

Open
LOLCATATONIA wants to merge 4 commits into
omacom:quattrofrom
LOLCATATONIA:dock-hide-when-covered
Open

LOLCATATONIA wants to merge 4 commits into
omacom:quattrofrom
LOLCATATONIA:dock-hide-when-covered

Conversation

@LOLCATATONIA

@LOLCATATONIA LOLCATATONIA commented Nov 8, 2026 •

Copy link
Copy Markdown

What changes

On a floating workspace the dock draws over any window that reaches the bottom of the screen: a snapped half, a large window, or the scratchpad (#17984). It already hides behind a maximized window. This makes it do the same whenever a window covers it, and come back when the window moves away. Its edge still brings it back on hover, as with a maximized window.

  • DockModel.coversDock() decides whether any window on the dock's workspace overlaps the dock's box. That includes the open special workspace, matched by name, since Hyprland 0.57 gives special workspaces no id. It accounts for the titlebar and the border.
  • DockWindow.qml hides on covered the way it already hides for auto-hide and maximize.
  • An app that draws its own frame (a browser, Disks, Papers) has no titlebar, so it counts without one once the snapping stack (Keep the tiling's places when a workspace switches to floating #18142) tags it omarchy-self-framed; on its own this PR treats it as before.
  • The dock menu's Auto-hide item shows the saved setting, not whether the dock is hiding at that moment. A maximized window could already make it show a check you never set, and clicking it only saved off again; a covering window makes that common.
  • Hyprland announces windows opening, closing, changing workspace or floating, gaining focus and minimizing, and the dock refreshes on each (activespecialv2 too, for the scratchpad). It sends nothing when a floating window is moved or resized, though. So while a dock is out on a floating workspace with nothing else hiding it, one shared 250 ms timer also refreshes the window list. It stops on tiled workspaces, behind a maximized window and with auto-hide on. AGENTS.md allows polling only for state with no change signal, and window geometry is such state. If there's a signal I missed, I'll switch to it.

Verification

  • ./test/all on today's quattro with this PR, the snapping stack and Bring a maximized window to the front when the user focuses it on floating workspaces #17361: 7859 pass; two fail the same way on plain quattro on this machine (lock-appear-budget-test.sh, a start-time budget, and tray-symbolic-icon-test.sh), so they are not from this change.
  • dock-test.sh goes from 48 to 58 checks for coversDock(): a window over the dock, a border reaching it, a window just clear of it, another workspace's window, a hidden window, the open scratchpad matched by name, a closed scratchpad, and, for a dock at the top, a titlebar reaching it and a window without one. Each was confirmed to fail without the change.
  • In a nested Hyprland 0.57.1 running a real Omarchy config with Omarchy's shell (20 checks):
    • a window moved over the dock hides it, and moved away it comes back;
    • a snapped left half hides it, the pointer at the bottom edge brings it out over the window, and it tucks away when the pointer leaves;
    • closing the covering window, or sending it to another workspace, brings the dock back;
    • the scratchpad over it hides it, and closing the scratchpad brings it back;
    • a maximized window still hides it;
    • a tiled workspace has no dock and runs no timer;
    • the timer costs well under 1% of a core;
    • no QML errors or warnings.
  • In use on my laptop on the edge channel.
  • Not checked: the timer's cost on a low-end machine; docks on the left or right edge beyond the shared geometry.

Screenshots

screenshot-2026-11-08_11-01-44-foot

Three snapped terminals on a floating workspace reach the bottom of the screen, and the dock has stepped aside; before this change it drew over the bottom of the windows. Pointing at the bottom edge still brings it out.

🤖 Generated with Claude Code

A window over the dock tucks it away as a maximized one does, its edge still
bringing it back; that includes a scratchpad window (omacom#17984). Hyprland doesn't
announce floating windows moving or resizing, so while a dock is out on a
floating workspace one shared 250 ms timer refreshes the window list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LOLCATATONIA
LOLCATATONIA marked this pull request as ready for review November 8, 2026 10:27
@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge with the stated dependency on #18142.

Summary

The PR hides the dock when a window overlaps it, while keeping edge-hover access. It also makes the Auto-hide menu reflect the saved setting.

  • The dock tucks away when a window covers it.
  • The Auto-hide menu shows the saved setting.

Reviews (4) · Last reviewed commit: "Leave a top dock out for apps that draw ..." · Reviewed by Greptile

Comment thread shell/plugins/dock/DockWindow.qml Resolved
QuixoticGitHub and others added 2 commits November 17, 2026 17:24
The menu's Auto-hide item read whether the dock was hiding at that moment,
which a maximized or covering window also causes, so it showed a check the
user never set and clicking it only saved off again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread shell/plugins/dock/DockModel.js Resolved
The dock took every window on a floating workspace to have a titlebar, so under
a browser, Disks or Papers a dock at the top hid while the window was still a
titlebar's height clear of it. A window tagged omarchy-self-framed (window
snapping marks those apps where Omarchy turns their titlebar off) counts
without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants