changeset 5823:daa705aff4f3

-rootwin fix...
author arpi
date Wed, 24 Apr 2002 23:15:17 +0000
parents 8e3251d0d9a6
children dd2f865f0346
files libvo/vo_xmga.c libvo/vo_xvidix.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Wed Apr 24 23:10:41 2002 +0000
+++ b/libvo/vo_xmga.c	Wed Apr 24 23:15:17 2002 +0000
@@ -278,7 +278,8 @@
    xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone );
    xWAttribs.background_pixel=0;
    xWAttribs.border_pixel=0;
-   xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
+   xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | 
+       ((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
    xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
 
     if ( WinID>=0 ){
--- 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)