Skip to content

feat(dock): native right-click menu for dock apps - #240

Open
arnavaggarwal-dev wants to merge 1 commit into
little-systems:mainfrom
arnavaggarwal-dev:feat/dock-app-menu
Open

arnavaggarwal-dev wants to merge 1 commit into
little-systems:mainfrom
arnavaggarwal-dev:feat/dock-app-menu

Conversation

@arnavaggarwal-dev

@arnavaggarwal-dev arnavaggarwal-dev commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Hi @SehajveerSingh2005, this gives dock apps a native right-click menu like the Windows taskbar's, including the app's recent items.

Native app menu

Right-clicking a pinned or running app in the dock now shows a native Win32 menu at the cursor with:

  • Recent: up to 10 of the app's recent items from its jump list (IApplicationDocumentLists, looked up by the window's AppUserModelID, or the dock path for packaged apps). Clicking one opens it through the app's own executable when the dock knows it, so a recent folder in VS Code opens in VS Code, not Explorer.
  • The app's name: starts a new instance, like the taskbar.
  • Pin to Dock / Unpin from Dock.
  • Close window / Close all windows, when the app has windows.

The menu returns the chosen action to the dock, which reuses its existing handlers (handleNewInstance, togglePin, close_window).

Shift-right-click still opens Bloom's own menu (custom icon, add apps, Bloom options), and Bloom's menu is also the fallback if the native menu fails. The Start button, tray-only apps and the dock background keep their current menus.

New command: show_app_menu (registered in main.rs). Cargo.toml gains the Win32_UI_Shell_Common feature for IObjectArray. No settings.

Related issue

Closes #255 (waiting for a maintainer to agree on the approach).

How was this tested?

  • Frontend typecheck passes (tsc --noEmit).
  • Rust was not compiled locally, so this relies on CI's cargo check and clippy.

Checklist

  • I read CONTRIBUTING.md
  • This change has a linked, approved issue (required for features): linked, waiting for approval
  • CI passes
  • The change is focused on one thing
  • Tested on Windows

Right-clicking a dock app now opens a native menu like the taskbar's: the app's recent items from its jump list (when it has an AppUserModelID), its name to start a new instance, Pin to Dock or Unpin from Dock, and Close window or Close all windows. A recent item opens through the app's own executable when the dock knows it, so a recent folder opens in the editor rather than Explorer.

Shift-right-click still opens Bloom's own menu with the customisation options, and Bloom's menu is the fallback if the native one cannot be shown.
@SehajveerSingh2005 SehajveerSingh2005 added the needs-testing Needs relevant reproduction or Windows validation before merge label Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-testing Needs relevant reproduction or Windows validation before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: The taskbar's right-click menu for dock apps

2 participants