1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 13:32:16 +00:00
mpv/video/out/cocoa
Ryan Goulden 2878c2a914 cocoa: fix native fullscreen
This fixes a couple of issues with the Cocoa `--native-fs` mode, primarily:

 - A ghost titlebar at the top of the screen in full screen:

   This was caused by the window constraining code kicking in during
   fullscreen. Simply returning the unconstrained rect from the constraining
   method fixes the problem.

 - Incorrect behavior when using the titlebar buttons to enter/exit
   fullscreen, as opposed to the OSD button.

   This was caused by mpv's internal fullscreen state going out of sync with
   the NSWindow's one. This was the case because `toggleFullScreen:`
   completely bypassed the normal event flow that mpv expects.

Signed-off-by: Ryan Goulden <percontation@gmail.com>

Change style for mpv, simplify and refactor some of the constraining code.

Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
2014-04-28 21:32:58 +02:00
..
additions.h
additions.m cocoa_common: check if the screen has a menubar in a more generic way 2013-10-09 09:27:41 +02:00
mpvadapter.h vo_opengl, cocoa: allow to autoselect a color profile 2014-03-31 22:07:33 +02:00
view.h cocoa: handle files drag and drop on the player video view 2014-01-04 17:29:53 +01:00
view.m cocoa: allow to drag and drop URLs 2014-01-10 10:48:54 +01:00
window.h cocoa: fix native fullscreen 2014-04-28 21:32:58 +02:00
window.m cocoa: fix native fullscreen 2014-04-28 21:32:58 +02:00