summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa-cb/events_view.swift
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-02-28 15:08:41 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-03-04 16:26:35 -0800
commitae2972557f555a11591082c213e653ac68a01f23 (patch)
tree5f4757e0b70ad8344158c433b9903c35970645b5 /video/out/cocoa-cb/events_view.swift
parentd7b6ebf64391327c60bdf50becd945f6237e5c9e (diff)
downloadmpv-ae2972557f555a11591082c213e653ac68a01f23.tar.bz2
mpv-ae2972557f555a11591082c213e653ac68a01f23.tar.xz
cocoa-cb: use new libmpv API instead of opengl-cb
a new replacement API was introduced with b037121 and the old one was deprecated. porting cocoa-cb to the new API.
Diffstat (limited to 'video/out/cocoa-cb/events_view.swift')
-rw-r--r--video/out/cocoa-cb/events_view.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/events_view.swift b/video/out/cocoa-cb/events_view.swift
index e2da8345f1..729a26263e 100644
--- a/video/out/cocoa-cb/events_view.swift
+++ b/video/out/cocoa-cb/events_view.swift
@@ -52,7 +52,7 @@ class EventsView: NSView {
return
}
- tracker = NSTrackingArea(rect: self.bounds,
+ tracker = NSTrackingArea(rect: bounds,
options: [.activeAlways, .mouseEnteredAndExited, .mouseMoved, .enabledDuringMouseDrag],
owner: self, userInfo: nil)
addTrackingArea(tracker!)