diff libvo/vo_xvidix.c @ 5823:daa705aff4f3

-rootwin fix...
author arpi
date Wed, 24 Apr 2002 23:15:17 +0000
parents ef3c2f82ea70
children ff3e5901b2cc
line wrap: on
line diff
--- a/libvo/vo_xvidix.c	Wed Apr 24 23:10:41 2002 +0000
+++ b/libvo/vo_xvidix.c	Wed Apr 24 23:15:17 2002 +0000
@@ -292,7 +292,8 @@
     xswa.border_pixel     = 0;
     xswa.colormap         = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen),
 					    vinfo.visual, AllocNone);
-    xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
+    xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | 
+       ((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
     xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
 
     if (WinID >= 0)