cocoa_common: make fullscreen menubar/dock hiding conditional
commit3259e4a7a2a9386fed1d4c0ddb8a3ee33534ff37
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Sun, 24 Jun 2012 21:03:56 +0000 (24 23:03 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 3 Aug 2012 22:45:22 +0000 (4 01:45 +0300)
treeeede1dad04ecac727e2874b0611c757ef50cce56
parentdb111a2c0d50efe322891e60c2ed42a5589cda03
cocoa_common: make fullscreen menubar/dock hiding conditional

cocoa_common was hiding the dock and menubar unconditionally when
going fullscreen. This means they were hidden even if they weren't on
the screen mplayer2 was going fullscreen on, resulting in poor user
experience.

Change the fullscreen function in the cocoa backend to check that
mplayer2 is on the same screen as the menubar/dock before hiding them.
libvo/cocoa_common.m