Repository navigation
Hide the dock while a window covers it - #18140
Open
LOLCATATONIA wants to merge 4 commits into
Open
LOLCATATONIA wants to merge 4 commits into
LOLCATATONIA wants to merge 4 commits into
Conversation
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
marked this pull request as ready for review
November 8, 2026 10:27
Contributor
[Medium impact] The PR appears safe to merge with the stated dependency on #18142. SummaryThe 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.
Reviews (4) · Last reviewed commit: "Leave a top dock out for apps that draw ..." · Reviewed by Greptile |
…ered # Conflicts: # manual/04-navigation.md
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.qmlhides oncoveredthe way it already hides for auto-hide and maximize.omarchy-self-framed; on its own this PR treats it as before.offagain; a covering window makes that common.activespecialv2too, 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/allon today'squattrowith 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 plainquattroon this machine (lock-appear-budget-test.sh, a start-time budget, andtray-symbolic-icon-test.sh), so they are not from this change.dock-test.shgoes from 48 to 58 checks forcoversDock(): 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.Screenshots
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