Skip to content

Minimize an app when its dock icon is clicked in front - #14

Merged
SumirSeth merged 1 commit into
SumirSeth:mainfrom
JulienMaille:fix/dock-minimize-on-click
Nov 7, 2026
Merged

SumirSeth merged 1 commit into
SumirSeth:mainfrom
JulienMaille:fix/dock-minimize-on-click

Conversation

@JulienMaille

Copy link
Copy Markdown
Contributor

Fixes #12.

Clicking a running app's dock icon while that app was already in front did nothing. It now minimizes the app, the way its Windows taskbar button does; clicking again restores it. A click on an app that is not in front still brings it forward.

The check considers every window of the app, so a grouped app is treated as active when any of its windows has the foreground, and all its windows minimize together.

Verified on Windows 11 with the release build: click Notepad3's dock icon (activates), click again (IsIconic true, focus moves to the next window), click again (restored and in front). fmt --check, cargo test (84 passed, 1 ignored) and clippy -D warnings are clean.

@SumirSeth
SumirSeth merged commit f8922c1 into SumirSeth:main Nov 7, 2026
1 check passed
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.

Feat. request: should we be able to minimize an app by clicking it's icon like the stock navigation bar from Windows?

2 participants