Snap widget to taskbar regions and resize bars to fit#17
Open
Helveg wants to merge 2 commits intoCodeZeno:mainfrom
Open
Snap widget to taskbar regions and resize bars to fit#17Helveg wants to merge 2 commits intoCodeZeno:mainfrom
Helveg wants to merge 2 commits intoCodeZeno:mainfrom
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.
I added a bit of layout logic so that the widget can be easily placed into open places on the taskbar, and also resizes and relayouts on changes.
Summary
Releasing outside any valid region reverts to the pre-drag position.
taskbar left-align the widget; regions on the right half right-align.
DesktopWindowContentBridge) so Win11 pinned/running apps are accounted for. TheUIA cache refreshes off the UI thread on a 500 ms tick and after every drag, and the widget auto-resizes if its current region shrinks below the minimum fit (jumping
to the nearest valid region).
--debug-renderflag overlays red-bordered boxes with class+size labels around every detected occupant, for diagnosing detection.