mirror of https://github.com/mpv-player/mpv
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:
parent
891e092669
commit
20c0231f02
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue