summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/events_view.m
Commit message (Collapse)AuthorAgeFilesLines
* cocoa: fix autohide in fullscreenStefano Pigozzi2015-03-111-1/+2
| | | | (cherry picked from commit 8ec9bce2d367541f9d3939f773b669beebd0be6d)
* cocoa: clamp mouse position to window.torque2015-03-111-0/+2
| | | | | | | Prevents out-of-window coordinates being reported for mouse coordinates. Previously they could be out-of-window coordinates on init or on resize. (cherry picked from commit 39537f64746d8e0ea0f828efee251fb84acdf11f)
* cocoa: update mouse coordinates when window is initialized.torque2015-03-111-1/+0
| | | | | | | | Make MpvEventsView -signalMousePosition a public method so it can be called without a compiler warning. Previously, the mouse position would be reported as (0,0) until the cursor was moved. (cherry picked from commit bce753060eb9fb99ebc64fb6027d130a37b918a6)
* cocoa: fix build on 10.9Stefano Pigozzi2015-01-021-1/+1
| | | | Use -isInFullScreenMode instead of the property introduced with the 10.10 SDK.
* cocoa: fix NSMapGet errorStefano Pigozzi2015-01-021-2/+4
| | | | regression from 64b6b2ea45
* cocoa: fix uninitialization while in fullscreenStefano Pigozzi2015-01-011-0/+12
| | | | | | | | This is only needed for switching video track with `_`, since Cocoa automatically handles cleaning up the application's presentation options when quitting the process. Fixes #1399
* cocoa: allow to black out other display when going fsStefano Pigozzi2014-12-011-1/+1
| | | fixes #1302
* cocoa: allow mouse events to bubble up with no-input-cursorStefano Pigozzi2014-10-171-14/+99
| | | | | Previously we didn't report events to the core, but still prevented the events to travel on the responder chain.
* libmpv/cocoa: allow clients to use mpv event systemStefano Pigozzi2014-10-121-0/+1
| | | | | | | | | | This allows mpv's view to take key and send events to mpv's core. To set key status correctly, clients must call -[NSWindow selectNextKeyView:] during reconfig on the main thread. All is 'documented' in the cocoabasic example. If someone knows a better way to handle giving key to the embedded view, let me know!
* cocoa: remove usage of Objective-C categoriesStefano Pigozzi2014-10-121-5/+37
| | | | | Objective-C categories need special linker flags from the user when statically linking (-ObjC LDFLAG), so make everyone's life simpler and remove them.
* cocoa: post keydown and keyup events without event monitorStefano Pigozzi2014-10-091-0/+8
| | | | | Our code worked under the assumption that the event monitor is always active and we did remove the keydown and keyup overrides from our cocoa view.
* cocoa: allow to embed into an arbitrary NSViewStefano Pigozzi2014-10-081-5/+0
| | | | | Basically add if guards on all the problematic features. I'm still thinking about a better way to handle this, but for the time being, this will do.
* cocoa: fix mouse autohideStefano Pigozzi2014-10-051-1/+1
| | | | broken in 547b62f
* cocoa: separate video view and events viewStefano Pigozzi2014-10-051-0/+262