mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Do not send mouse movements events in root win mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25496 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2634462d21
commit
28beb7c155
@ -1005,7 +1005,7 @@ static int control(uint32_t request, void *data, ...)
|
||||
CGDisplayShowCursor(kCGDirectMainDisplay);
|
||||
mouseHide = NO;
|
||||
}
|
||||
if (enable_mouse_movements) {
|
||||
if (enable_mouse_movements && !isRootwin) {
|
||||
NSPoint p =[self convertPoint:[theEvent locationInWindow] fromView:nil];
|
||||
if ([self mouse:p inRect:textureFrame]) {
|
||||
char cmdstr[40];
|
||||
|
Loading…
Reference in New Issue
Block a user