mpv/video/out/cocoa
Akemi 6da224b1dd cocoa: optimise screen event handling
this optimises two things and fix a minor bug.

1. we always updated the display refresh rate on any mode change whether
it was the current screen or not. now we only update the refresh rate
when the mode changed happened on the current screen.
2. the windowDidChangeScreen event doesn't exclusively trigger on screen
changes so we updated the display refresh rate in cases where it wasn't
needed at all. since we manually keep track of the current screen, we
can easily test if the screen really changed.
3. weirdly on initWithContentRect accessing the screen of the window
always returned the main screen instead of the screen the window is
created on. since we already use the window init method with the screen
as argument, overwrite that method instead and use the screen argument.
2017-02-02 16:22:27 +01:00
..
events_view.h cocoa: fullscreen refactoring 2016-12-15 20:55:16 +01:00
events_view.m cocoa: fix build on OS X 10.9 2016-12-26 22:53:04 +01:00
mpvadapter.h cocoa: fullscreen refactoring 2016-12-15 20:55:16 +01:00
video_view.h cocoa: allow to embed into an arbitrary NSView 2014-10-08 19:38:35 +02:00
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