Skip to content

feat: a click outside closes the pinned card - #461

Merged
ataturhan21 merged 1 commit into
mainfrom
feat/460-outside-click-closes-card
Dec 5, 2026
Merged

ataturhan21 merged 1 commit into
mainfrom
feat/460-outside-click-closes-card

Conversation

@ataturhan21

Copy link
Copy Markdown
Member

What

While the card is pinned, a 50 ms timer reads the left button with GetAsyncKeyState. On a new press outside the pills (every taskbar's) and the card, it closes the card. A press while the menu is open, or within 400 ms after it closes, never counts. This is the same rule as the Machines widget's OutsideTick.

Tests

ZOrder.ClickClosesCard: a click on the desktop closes the card; a click on the pill, in the card or on a menu item keeps it.

Fixes #460

@ataturhan21
ataturhan21 merged commit 5bddd93 into main Dec 5, 2026
5 checks passed
@ataturhan21
ataturhan21 deleted the feat/460-outside-click-closes-card branch December 5, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Close the pinned card on a click outside the widgets

1 participant