diff options
author | Akemi <der.richter@gmx.de> | 2017-02-20 17:25:21 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-20 17:26:56 +0100 |
commit | fffab30a3ef01dc6f34adadccb05617f4a3a528e (patch) | |
tree | 0642917b895344ce7c998e67151d6e05647bbe56 /video/out/cocoa/window.m | |
parent | bdd096db9a8e70d8c70af4eec80c67d4807173f3 (diff) | |
download | mpv-fffab30a3ef01dc6f34adadccb05617f4a3a528e.tar.bz2 mpv-fffab30a3ef01dc6f34adadccb05617f4a3a528e.tar.xz |
cocoa: only report mouse movements when window is not being dragged
even though the mouse doesn’t move relative to the window itself, when
the window is being dragged, some outliers are still reported and
trigger the OSC.
Diffstat (limited to 'video/out/cocoa/window.m')
-rw-r--r-- | video/out/cocoa/window.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m index 1ff57acde9..028b17985f 100644 --- a/video/out/cocoa/window.m +++ b/video/out/cocoa/window.m @@ -204,6 +204,11 @@ [self.adapter windowDidDeminiaturize:notification]; } +- (void)windowWillMove:(NSNotification *)notification +{ + [self.adapter windowWillMove:notification]; +} + - (BOOL)canBecomeMainWindow { return YES; } - (BOOL)canBecomeKeyWindow { return YES; } - (BOOL)windowShouldClose:(id)sender |