mpv/video/out/cocoa
Akemi 4f74b93546 cocoa: fix cursor hiding at the top of the screen in fullscreen
even before the recent refactor the cursor was hidden when moving it to
the top of the screen in fullscreen and placing it on top of the now
visible menu bar.

we need to know when the menu bar is hidden so we don’t create a
‘dead zone’ at the top of the screen where the cursor can’t be hidden.
to determine when the menu bar is visible, and with that the title bar,
we get the height of the menu bar. the height is always 0 when hidden.

furthermore there is no way to get the title bar directly and with that
its height. so we calculate the frame rect of a NSWindowStyleMaskTitled
window from a CGRectZero content frame. the resulting height is the
height of a title bar.

with that we can exclude the top area for the cursor hiding and can be
certain when the menu bar is not hidden.
2017-02-19 17:54:06 +01:00
..
events_view.h cocoa: refactor mouse events and cursor visibility 2017-02-16 22:22:11 +01:00
events_view.m cocoa: fix cursor hiding at the top of the screen in fullscreen 2017-02-19 17:54:06 +01:00
mpvadapter.h cocoa: refactor mouse events and cursor visibility 2017-02-16 22:22:11 +01:00
video_view.h
video_view.m cocoa: cosmetic fixes 2016-12-16 16:32:26 +01:00
window.h cocoa: move updateBorder method to the protocol 2017-01-19 14:54:22 +01:00
window.m cocoa: optimise screen event handling 2017-02-02 16:22:27 +01:00