Skip to content
Snippets Groups Projects
Commit 9f66ddb2 authored by Ian McInerney's avatar Ian McInerney
Browse files

Attempt to use IsAttached to identify if a menu is a menubar menu

We can't get a mouse position for a menubar menu's event, because the
mouse may be outside our canvas. The original hack to detect menubar
menus may not work fully, and there have been some crashes appearing on
macOS where menubar menus attempted to get mouse position information.

Instead of the hack, try using IsAttached() to detect if the menu is
attached to a menubar, and then gate mouse position access accordingly.

Fixes #16738
parent eacebe63
No related branches found
No related tags found
No related merge requests found
Pipeline #1154839266 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment