[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.111,1.112
Jindrich Makovicka CVS
henry at mplayerhq.hu
Mon Nov 11 15:26:28 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main configure,1.600,1.601
- Next message: [Mplayer-cvslog] CVS: main/libvo video_out.c,1.63,1.64 video_out.h,1.47,1.48 video_out_internal.h,1.13,1.14 vo_3dfx.c,1.15,1.16 vo_aa.c,1.34,1.35 vo_bl.c,1.1,1.2 vo_dfbmga.c,1.4,1.5 vo_dga.c,1.59,1.60 vo_directfb.c,1.23,1.24 vo_directfb2.c,1.4,1.5 vo_directx.c,1.5,1.6 vo_dxr2.c,1.14,1.15 vo_dxr3.c,1.109,1.110 vo_fbdev.c,1.74,1.75 vo_ggi.c,1.25,1.26 vo_gif89a.c,1.7,1.8 vo_gl.c,1.32,1.33 vo_gl2.c,1.27,1.28 vo_jpeg.c,1.7,1.8 vo_md5.c,1.13,1.14 vo_mga.c,1.34,1.35 vo_mpegpes.c,1.36,1.37 vo_null.c,1.11,1.12 vo_pgm.c,1.13,1.14 vo_png.c,1.22,1.23 vo_sdl.c,1.94,1.95 vo_svga.c,1.54,1.55 vo_syncfb.c,1.13,1.14 vo_tdfxfb.c,1.21,1.22 vo_vesa.c,1.80,1.81 vo_x11.c,1.123,1.124 vo_xmga.c,1.81,1.82 vo_xv.c,1.126,1.127 vo_xvidix.c,1.54,1.55 vo_yuv4mpeg.c,1.12,1.13 vo_zr.c,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv27160
Modified Files:
x11_common.c
Log Message:
reversed wm order in vo_x11_setlayer + even upper layer for GNOME compliant wm's
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- x11_common.c 6 Nov 2002 23:54:28 -0000 1.111
+++ x11_common.c 11 Nov 2002 14:26:07 -0000 1.112
@@ -629,7 +629,7 @@
#define WIN_LAYER_ONBOTTOM 2
#define WIN_LAYER_NORMAL 4
-#define WIN_LAYER_ONTOP 6
+#define WIN_LAYER_ONTOP 10
void vo_x11_setlayer( int layer )
{
@@ -655,6 +655,30 @@
return;
}
+ type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False );
+ if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 )
+ {
+ XClientMessageEvent xev;
+
+ mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer );
+ memset( &xev,0,sizeof( xev ) );
+ xev.type=ClientMessage;
+ xev.window=vo_window;
+ xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False );
+ xev.format=32;
+ switch ( layer )
+ {
+ case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break;
+ case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break;
+ case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break;
+ }
+
+ if ( layer ) XRaiseWindow( mDisplay,vo_window );
+ XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev );
+
+ XFree( args );
+ return;
+ }
type=XInternAtom( mDisplay,"_NET_SUPPORTED",False );
if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 )
{
@@ -677,29 +701,6 @@
XSendEvent( mDisplay,mRootWin,False,SubstructureRedirectMask,&e );
- XFree( args );
- return;
- }
- type=XInternAtom( mDisplay,"_WIN_SUPPORTING_WM_CHECK",False );
- if ( Success == XGetWindowProperty( mDisplay,mRootWin,type,0,16384,False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char**)(&args) ) && nitems > 0 )
- {
- XClientMessageEvent xev;
-
- mp_dbg( MSGT_VO,MSGL_STATUS,"[x11] Gnome style stay on top ( layer %d ).\n",layer );
- memset( &xev,0,sizeof( xev ) );
- xev.type=ClientMessage;
- xev.window=vo_window;
- xev.message_type=XInternAtom( mDisplay,"_WIN_LAYER",False );
- xev.format=32;
- switch ( layer )
- {
- case -1: xev.data.l[0] = WIN_LAYER_ONBOTTOM; break;
- case 0: xev.data.l[0] = WIN_LAYER_NORMAL; break;
- case 1: xev.data.l[0] = WIN_LAYER_ONTOP; break;
- }
- XSendEvent( mDisplay,mRootWin,False,SubstructureNotifyMask,(XEvent*)&xev );
- if ( layer ) XRaiseWindow( mDisplay,vo_window );
-
XFree( args );
return;
}
- Previous message: [Mplayer-cvslog] CVS: main configure,1.600,1.601
- Next message: [Mplayer-cvslog] CVS: main/libvo video_out.c,1.63,1.64 video_out.h,1.47,1.48 video_out_internal.h,1.13,1.14 vo_3dfx.c,1.15,1.16 vo_aa.c,1.34,1.35 vo_bl.c,1.1,1.2 vo_dfbmga.c,1.4,1.5 vo_dga.c,1.59,1.60 vo_directfb.c,1.23,1.24 vo_directfb2.c,1.4,1.5 vo_directx.c,1.5,1.6 vo_dxr2.c,1.14,1.15 vo_dxr3.c,1.109,1.110 vo_fbdev.c,1.74,1.75 vo_ggi.c,1.25,1.26 vo_gif89a.c,1.7,1.8 vo_gl.c,1.32,1.33 vo_gl2.c,1.27,1.28 vo_jpeg.c,1.7,1.8 vo_md5.c,1.13,1.14 vo_mga.c,1.34,1.35 vo_mpegpes.c,1.36,1.37 vo_null.c,1.11,1.12 vo_pgm.c,1.13,1.14 vo_png.c,1.22,1.23 vo_sdl.c,1.94,1.95 vo_svga.c,1.54,1.55 vo_syncfb.c,1.13,1.14 vo_tdfxfb.c,1.21,1.22 vo_vesa.c,1.80,1.81 vo_x11.c,1.123,1.124 vo_xmga.c,1.81,1.82 vo_xv.c,1.126,1.127 vo_xvidix.c,1.54,1.55 vo_yuv4mpeg.c,1.12,1.13 vo_zr.c,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list