Mercurial > mplayer.hg
diff Gui/mplayer/sw.h @ 2045:deb4aff05c44
fix other bugs
author | pontscho |
---|---|
date | Tue, 02 Oct 2001 15:01:56 +0000 |
parents | 68dbb349566e |
children | b64fa5d25142 |
line wrap: on
line diff
--- a/Gui/mplayer/sw.h Tue Oct 02 08:31:46 2001 +0000 +++ b/Gui/mplayer/sw.h Tue Oct 02 15:01:56 2001 +0000 @@ -6,7 +6,8 @@ void mplSubDraw( wsParamDisplay ) { - if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible=0; + if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++; + if ( !appMPlayer.subWindow.Mapped || appMPlayer.subWindow.Visible == wsWindowNotVisible ) return; @@ -64,8 +65,16 @@ // if ( ( !mplSubMoved )&&( ( SubVisible++%2 ) ) ) wsMoveTopWindow( &appMPlayer.mainWindow ); if ( !mplSubMoved ) { - if( SubVisible++%2 ) wsMoveTopWindow( &appMPlayer.subWindow ); - else wsMoveTopWindow( &appMPlayer.mainWindow ); + if( SubVisible++%2 ) + { + wsMoveTopWindow( &appMPlayer.mainWindow ); + fprintf( stderr,"[sw] MAIN TOP\n" ); + } + else + { + wsMoveTopWindow( &appMPlayer.subWindow ); + fprintf( stderr,"[sw] SUB TOP\n" ); + } } msButton=0; mplSubMoved=0;