summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-15 18:58:42 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-20 11:44:06 +0200
commit20c0231f024f430cc0340b9b0a867ac2b577d764 (patch)
treed98ae00bcf310b2bc756001d95ec4c9c28e05481 /video
parent891e09266970a65ce0d47b923c1ad4139712e6ea (diff)
downloadmpv-20c0231f024f430cc0340b9b0a867ac2b577d764.tar.bz2
mpv-20c0231f024f430cc0340b9b0a867ac2b577d764.tar.xz
cocoa_common: implement MP_MOUSE_LEAVE notifications
This is needed for the OSC. At the moment I'm sending a notification for any mouse movement outside of the video surface. This might be overkill.
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 5fc70d0c66..21de24e21c 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -851,6 +851,8 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
NSPoint loc = [self mouseLocationUpperLeft];
vo_mouse_movement(self.videoOutput, loc.x, loc.y);
[self recalcDraggableState];
+ } else {
+ cocoa_put_key(MP_KEY_MOUSE_LEAVE);
}
}