Skip to content

The Start key: a Dock's Start menu, else nothing by default - #112

Merged
pkgdemon merged 1 commit into
mainfrom
windows-start
Nov 27, 2026
Merged

pkgdemon merged 1 commit into
mainfrom
windows-start

Conversation

@pkgdemon

Copy link
Copy Markdown
Collaborator

Part of nextbsd/nextbsd#719 (Windows style).

  • A Dock can say it shows a Start menu (WS_MSG_DOCK_START_MENU, ws_dock_set_start_menu, wsctl dock start-menu). A tap of ⌘ on its own then goes to the newest such Dock as WS_EVENT_START_KEY. WindowServer also puts the Dock's AppKit app in front, as a click on the Dock does, so the menu's search field gets the keys.
  • With no Start menu, a ⌘ tap does nothing by default (StartKeyShowsOverview is now false). The overview stays on Ctrl-↑/↓ and the swipes.
  • WS_DOCK_START_MENU in WSTypes.h lets a Dock build against older headers.
  • Headless tests cover the default (the tap opens nothing), the Start-menu Dock taking the tap, and the tap going back when that Dock leaves. Only the 2 known failures on main remain.
  • Tested on the arm64 VM: ⌘ opens Start in the Windows style, and typing reaches its search field.

🤖 Generated with Claude Code

A tap of the Start (Command) key on its own opened the overview. Now:

- A Dock that shows a Start menu (the Windows style's taskbar) says so
  with WS_MSG_DOCK_START_MENU (ws_dock_set_start_menu), and the tap
  comes to the newest such Dock as WS_EVENT_START_KEY.
- With no such Dock, the tap opens the overview only if
  StartKeyShowsOverview is on, now off by default: as on a Mac,
  Command alone does nothing. Control+Up, Control+Down, the Mission
  Control key and three-finger swipes open the overview as before.
- wsctl dock start-menu [SECONDS] acts as such a Dock and prints each
  tap; the headless test checks the default, the setting, the Dock
  taking the tap, and the tap going back when it leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkgdemon
pkgdemon merged commit c13f429 into main Nov 27, 2026
@pkgdemon
pkgdemon deleted the windows-start branch November 27, 2026 01:14
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.

1 participant