Commit 26eddd8
Fix submenu closing parent dropdown due to InsideMenuBar state corruption
BeginSubmenu didn't increment MenuBarMenuDepth, so EndMenu for a nested
submenu prematurely restored InsideMenuBar=true. This caused subsequent
BeginMenu calls in the same dropdown to route through BeginMenuBarMenu,
triggering hover-to-switch logic that closed the parent dropdown.
Also make MenuItem participate in HoveredMenuItemId tracking so sibling
submenus properly close when hovering regular menu items.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4dab9b5 commit 26eddd8
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3972 | 3972 | | |
3973 | 3973 | | |
3974 | 3974 | | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
3975 | 3982 | | |
3976 | 3983 | | |
3977 | 3984 | | |
| |||
4257 | 4264 | | |
4258 | 4265 | | |
4259 | 4266 | | |
4260 | | - | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
4261 | 4274 | | |
4262 | 4275 | | |
4263 | 4276 | | |
| |||
0 commit comments