Repository navigation
Keep the dock up until a window overlaps it - #128
Merged
Merged
Conversation
SumirSeth
force-pushed
the
feat/dock-dodge-windows
branch
from
November 21, 2026 13:48
24047db to
bcacf90
Compare
Co-Authored-By: Codex <noreply@openai.com>
A global location-change hook wakes the dock for cursor and caret moves across every process. Track location changes only in the foreground process and re-hook on foreground changes. Keep global foreground, minimize, show/hide/destroy and cloak events, add move/size end, and retain the coalescing timer. Background windows moving without becoming foreground may leave overlap stale until the next watched global event. This trades rare background-only movement updates for fewer dock-thread wakeups. Co-Authored-By: Codex <noreply@openai.com>
SumirSeth
force-pushed
the
feat/dock-dodge-windows
branch
from
November 21, 2026 14:55
bcacf90 to
856877c
Compare
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 changed
A new option, Hide only when windows overlap (
dock_dodge_windows, off by default), which applies only with autohide on. The dock stays up until a window covers its area, then hides as usual. Touching the edge still reveals it.Why
#110: with autohide on, the dock hides even on an empty desktop.
How it works
src/dock/dodge.rschecks for overlap after window events, never from the pointer poll:With the option off, nothing is hooked.
How I verified it
Unit tests cover overlap geometry (including negative monitor coordinates), config parsing and the Settings round trip. fmt, both clippy runs and the tests pass.
Performance
Off: no cost. On:
EnumWindowspass after a burst of window events, plus location events from the foreground app only.Not tested
On a real desktop:
Fixes #110
Unreleased.🤖 Generated with Claude Code