Prevent widget overlap with taskbar apps#57
Closed
vladimirgamalyan wants to merge 1 commit into
Closed
Conversation
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
MSTaskListWClass,MSTaskSwWClass, orReBarWindow32)Why
The widget was positioned relative to the taskbar and notification area only. Its maximum offset used the taskbar's left edge, so a restored position or drag could place it on top of pinned and running app buttons. The same overlap could appear later as the task list expanded.
This is a focused overlap safeguard. It complements the broader snap-and-resize work proposed in #17 without introducing a new placement UI.
Impact
Taskbar buttons remain accessible. Existing saved positions are preserved when they are safe and clamped when they are not. If no non-overlapping region can fit the widget, users can still access the monitor through its tray icon until taskbar space becomes available.
Validation
cargo test(9 passed)cargo build --releasecargo clippy --all-targets --no-deps -- -D warningswith allowances for the repository's existing lint findings(45, 1392, 865, 1440), widget(1891, 1394, 2176, 1440), notification area(2343, 1392, 2560, 1440)