cocoa_common: accept window drag event from the whole window surface
commit09beba6e9ec2c59befdfb3b4df9d4683303de880
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Fri, 6 Jan 2012 08:54:04 +0000 (6 09:54 +0100)
committerUoti Urpala <uau@mplayer2.org>
Sun, 25 Mar 2012 19:30:37 +0000 (25 22:30 +0300)
treedd49acc610ab3a51c276484b2a1abac7989dd1c8
parent495dde4018e071f81462052d5b4c09c973f25f16
cocoa_common: accept window drag event from the whole window surface

Change the window to accept mouse drag events not only on the title
bar, but also on the rest of the window surface; this includes the
video area.

It looks like the changing of the window mask resets the behaviour
specified in the delegate method, probably due to some strange
interaction with NSBorderlessWindow. For this reason call
-setPresentationOptions in the -fullscreen method to remind cocoa the
behaviour we want.
libvo/cocoa_common.m