From 20c0231f024f430cc0340b9b0a867ac2b577d764 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 15 Jul 2013 18:58:42 +0200 Subject: 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. --- video/out/cocoa_common.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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); } } -- cgit v1.2.3