diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-02 15:01:56 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-02 15:01:56 +0000 |
commit | 218548d50c2839eb03955a351e740e7b6dbcfafd (patch) | |
tree | 9742d46d6459c71a0bf391355b0298a2c4b13b03 /Gui/mplayer/sw.h | |
parent | d65a7da22183da0bb47eeea99da9cd44087cf395 (diff) | |
download | mpv-218548d50c2839eb03955a351e740e7b6dbcfafd.tar.bz2 mpv-218548d50c2839eb03955a351e740e7b6dbcfafd.tar.xz |
fix other bugs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2046 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/sw.h')
-rw-r--r-- | Gui/mplayer/sw.h | 15 |
1 files changed, 12 insertions, 3 deletions
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; |