Repository navigation
Conversation
…ndary taskbars A secondary taskbar has no TrayNotifyWnd, so the drag clamp only knew the end of the bar and a widget that grew wider slid under the clock. Clamp against the notification area measured by the occupancy reader instead, remember it while a sample is unavailable, and let the watchdog reposition once it is first measured. Co-Authored-By: Claude Fable 5.2 <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.
Summary
surface_screen_rectkeeps a drag-docked widget left ofTrayNotifyWnd.Shell_SecondaryTrayWndhas noTrayNotifyWnd, so on a secondary taskbar the clamp only knew the end of the bar. The clock there (SystemTray.OmniButtonon Windows 11) is only visible to the UI Automation occupancy reader, which is why starting a drag snapped the widget back into the free slot.TrayNotifyWnd, a drag-docked placement is clamped against the notification area measured by the occupancy reader (the extent of itsreservedrectangles). The widget now grows away from the clock, as it does on the primary taskbar.TrayNotifyWnd, so a widget placed at startup before the first sample is repositioned once the clock is known.TrayNotifyWndstill wins.Testing
cargo fmt --all -- --check,cargo clippy --locked --all-targets -- -D warnings,cargo test --locked(670 passed, 0 failed, 6 ignored),cargo build --locked --release, repository checks and dependency security. Not run locally: this machine has no MSVC toolchain.drag_docked_widget_stays_clear_of_a_secondary_taskbar_clock(clamps against the measured clock, falls back to the end of the bar without a sample, prefersTrayNotifyWnd, leaves tray-referenced placements alone) andmeasured_tray_follows_the_latest_sample_of_the_same_taskbar_geometry.Checklist
tests/snapshots/themesand checked the new images(see CONTRIBUTING.md, Theme changes).
every_provider_meets_the_contractpasses with a redacted fixture(see CONTRIBUTING.md, Provider changes).
🤖 Generated with Claude Code