[MPlayer-dev-eng] Broken -rootwin

Tomas Konir moje at molly.vabo.cz
Thu Apr 25 00:31:14 CEST 2002


Hi
Option -rootwin is curently broken i think. 
(with xv -> error, with x11 -> no playing).
Can you try this patch or another way to solve this problem ?

--
Tomas Konir
Brno
ICQ 25849167

--------------------------------------------

diff -Nur main/libvo/vo_xv.c main_rootwin/libvo/vo_xv.c
--- main/libvo/vo_xv.c  2002-04-25 00:15:20.000000000 +0200
+++ main_rootwin/libvo/vo_xv.c  2002-04-25 00:25:54.000000000 +0200
@@ -416,7 +416,7 @@
    vo_x11_classhint( mDisplay,vo_window,"xv" );
    vo_hidecursor(mDisplay,vo_window);
 
-   XSelectInput(mDisplay, vo_window, StructureNotifyMask | KeyPressMask | 
PointerMotionMask
+   if ( WinID!=0 ) XSelectInput(mDisplay, vo_window, StructureNotifyMask 
| KeyPressMask | PointerMotionMask
 #ifdef HAVE_NEW_INPUT
                | ButtonPressMask | ButtonReleaseMask
 #endif
diff -Nur main/libvo/vo_x11.c main_rootwin/libvo/vo_x11.c
--- main/libvo/vo_x11.c 2002-04-25 00:15:20.000000000 +0200
+++ main_rootwin/libvo/vo_x11.c 2002-04-25 00:26:20.000000000 +0200
@@ -347,7 +347,7 @@
     vo_x11_classhint( mDisplay,vo_window,"x11" );
     vo_hidecursor(mDisplay,vo_window);
     if ( fullscreen ) vo_x11_decoration( mDisplay,vo_window,0 );
-    XSelectInput( mDisplay,vo_window,StructureNotifyMask );
+    if ( WinID!=0 ) XSelectInput( mDisplay,vo_window,StructureNotifyMask 
);
     XSetStandardProperties( 
mDisplay,vo_window,title,title,None,NULL,0,&hint );
     XMapWindow( mDisplay,vo_window );
 #ifdef HAVE_XINERAMA






More information about the MPlayer-dev-eng mailing list