Skip to content

Track window drags, close boxes and menu choices - #74

Merged
colemancda merged 11 commits into
masterfrom
feature/toolbox-tracking
Dec 3, 2026
Merged

colemancda merged 11 commits into
masterfrom
feature/toolbox-tracking

Conversation

@colemancda

Copy link
Copy Markdown
Member

Adds the mouse tracking the Window and Menu Managers lacked, compared with Mac OS 9.2.2.

  • Window.isTracking(_:at:) for TrackGoAway and TrackBox, and WindowDrag for DragWindow.
  • MenuTracker for MenuSelect and MenuChoice. The host gives it the mouse and says where the titles and menus are.
  • Menu separators are 6 pixels tall; they were 16.
  • TrackingCapture.c and its output, with tests that replay the same presses and releases.

Not captured: a drag at the limit's edges, a rear window released outside the limit (Graphite selects it), a drag with the Command key, and submenus. Drawing of frames and menus is not part of this.

swift test passes on macOS. Not run on Linux locally.

@colemancda
colemancda merged commit d193552 into master Dec 3, 2026
3 checks passed
@colemancda
colemancda deleted the feature/toolbox-tracking branch December 3, 2026 07:53
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