changeset 25468:a77c438fedf7

Do not send mouse movements events in root win mode.
author ulion
date Sat, 22 Dec 2007 14:55:26 +0000
parents 7bdd28e3fca7
children fbb527ada079
files libvo/vo_macosx.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_macosx.m	Sat Dec 22 11:25:59 2007 +0000
+++ b/libvo/vo_macosx.m	Sat Dec 22 14:55:26 2007 +0000
@@ -1005,7 +1005,7 @@
 		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];