diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-03-13 19:46:54 +1100 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2015-03-13 21:31:58 +1100 |
commit | acbac01a73e22ba1b0aa48be191f72f988133edd (patch) | |
tree | 1516b2c2d76dcbfcc92538f97538f72ddbfdab27 /video/fmt-conversion.h | |
parent | ea680d2677e7ffbfdc3b4386df7690386703fe45 (diff) | |
download | mpv-acbac01a73e22ba1b0aa48be191f72f988133edd.tar.bz2 mpv-acbac01a73e22ba1b0aa48be191f72f988133edd.tar.xz |
w32_common: don't hide cursor when the menu is open
Previously, mpv would hide the cursor when the autohide timer expired,
even if the window menu was open. This made it difficult to use the menu
with the mouse.
When handling VOCTRL_SET_CURSOR_VISIBILITY, instead of determining
whether to call SetCursor by checking if the cursor is in the client
area, call it based on the parameters to the last WM_SETCURSOR message.
When the window enters "menu mode," it gets a WM_SETCURSOR message with
HIWORD(lParam) set to 0 to indicate that the cursor shouldn't be set.
Diffstat (limited to 'video/fmt-conversion.h')
0 files changed, 0 insertions, 0 deletions