Something went wrong. Try again.
Reactos
Something went wrong. Try again.
[SHELL32] Fix focus glitch when hovering separators with submenu open (#7932) master
CORE-20124 Since `TB_HITTEST` returns negative numbers for ID for separator menu items [^1], shell menu assumes mouse moved outside of the menu popup, highlighting the menu item for currently open submenu. To fix this behavior, we can detect separators in `CMenuFocusManager::ProcessMouseMove` and negate the ID returned by `TB_HITTEST` to make it a positive number again, so the shell menu wouldn't glitch. [^1]: https://learn.microsoft.com/en-us/windows/win32/controls/tb-hittest
Author Mohammad Amin Mollazadeh Committer GitHub Date (May 4, 2025, 3:11 PM UTC) Commit cc167691 cc16769179b730a75ff2edee83298f65c6c8f217 Parent 3e342246 3e342246d46b3c384a8094077ae4b54ad5df39e9