Mercurial > mplayer.hg
changeset 6064:55b2b5da9bd2
small cleanup, new flag in -fsmode to avoid unmapping window for unknown wm
author | arpi |
---|---|
date | Sun, 12 May 2002 22:16:31 +0000 |
parents | 8460a0c0b44f |
children | 1d792986b2a5 |
files | libvo/x11_common.c |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Sun May 12 20:48:17 2002 +0000 +++ b/libvo/x11_common.c Sun May 12 22:16:31 2002 +0000 @@ -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 );