From 218548d50c2839eb03955a351e740e7b6dbcfafd Mon Sep 17 00:00:00 2001 From: pontscho Date: Tue, 2 Oct 2001 15:01:56 +0000 Subject: fix other bugs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2046 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/sw.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Gui/mplayer/sw.h') diff --git a/Gui/mplayer/sw.h b/Gui/mplayer/sw.h index a97dc88921..8f0ca754da 100644 --- a/Gui/mplayer/sw.h +++ b/Gui/mplayer/sw.h @@ -6,7 +6,8 @@ int SubVisible = 0; 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 @@ void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY ) // 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; -- cgit v1.2.3