[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.80,1.81

Arpi of Ize arpi at mplayerhq.hu
Mon May 13 00:16:33 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv22388

Modified Files:
	x11_common.c 
Log Message:
small cleanup, new flag in -fsmode to avoid unmapping window for unknown wm

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- x11_common.c	12 May 2002 16:01:08 -0000	1.80
+++ x11_common.c	12 May 2002 22:16:31 -0000	1.81
@@ -739,14 +739,6 @@
 
  if ( WinID >= 0 ) return;
 
- switch ( vo_wm_type )
-  {
-   case vo_wm_Unknown:
-	  vo_x11_decoration( mDisplay,vo_window,(vo_fs) ? 1 : 0 );
-	  XUnmapWindow( mDisplay,vo_window );
-	  break;
-  }
-
  if ( vo_fs )
   { vo_fs=VO_FALSE; x=vo_old_x; y=vo_old_y; w=vo_old_width; h=vo_old_height; }
    else { vo_fs=VO_TRUE; vo_old_x=vo_dx; vo_old_y=vo_dy; vo_old_width=vo_dwidth;   vo_old_height=vo_dheight; }
@@ -754,6 +746,8 @@
  vo_x11_decoration( mDisplay,vo_window,(vo_fs) ? 0 : 1 );
  vo_x11_sizehint( x,y,w,h,0 );
  vo_x11_setlayer( vo_fs );
+ if(vo_wm_type==vo_wm_Unknown && !(vo_fsmode&16))
+     XUnmapWindow( mDisplay,vo_window );  // required for MWM
  XMoveResizeWindow( mDisplay,vo_window,x,y,w,h );
  XMapRaised( mDisplay,vo_window );
  XRaiseWindow( mDisplay,vo_window );




More information about the MPlayer-cvslog mailing list