1 Commits
Author SHA1 Message Date
David Richardson 977875306d AppKit: Prevent hangs from overlapping cursor areas in views outside a window’s content view
Limiting the frontmost-area traversal check to the content view allowed it to run past the window view for views outside the content view (such as those in a toolbar), causing an application hang whenever the pointer entered two overlapping cursor areas within such a view (such as the cancel button and text area of a search field containing text).

- CPWindow: Traverse superviews up to the window view (the root of every view
  in the window) in -_handleCursorUpdateEventsForEvent:atPoint:dragging:, and
  raise the existing view hierarchy exception if a traversal reaches nil.

- CPWindowCursorUpdateTest: Add tests covering overlapping cursor areas of
  sibling views in the content view, a single view outside the content view,
  and a nested view outside the content view.
2026-11-17 08:54:36 -06:00