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.
This commit is contained in:
Stefano Pigozzi 2013-07-15 18:58:42 +02:00
parent 891e092669
commit 20c0231f02
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}