summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/sw.h
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-02 21:10:42 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-02 21:10:42 +0000
commitec989de7b062682835c721b173e9475b9ecaba44 (patch)
tree7c9ca3e7edbd92463d18bdc16c44ebdbd4b44aa8 /Gui/mplayer/sw.h
parent174efd77f23b4bb3f03cd43b972336adebc1c2e6 (diff)
downloadmpv-ec989de7b062682835c721b173e9475b9ecaba44.tar.bz2
mpv-ec989de7b062682835c721b173e9475b9ecaba44.tar.xz
fix window hiding bug with some wms (kde, gnome, icewm, mwm, wmaker)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6623 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/sw.h')
-rw-r--r--Gui/mplayer/sw.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Gui/mplayer/sw.h b/Gui/mplayer/sw.h
index 88cf6ec235..0dc177b8ce 100644
--- a/Gui/mplayer/sw.h
+++ b/Gui/mplayer/sw.h
@@ -9,6 +9,7 @@ void mplSubDraw( wsParamDisplay )
if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit );
if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++;
+ if ( appMPlayer.subWindow.State == wsWindowFocusOut && wsWMType != wsWMKDE && wsWMType != wsWMIceWM ) SubVisible--;
if ( !appMPlayer.subWindow.Mapped ||
appMPlayer.subWindow.Visible == wsWindowNotVisible ) return;
@@ -64,8 +65,8 @@ void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY )
if ( ( !mplSubMoved )&&( appMPlayer.subWindow.isFullScreen ) )
{
if( SubVisible++%2 ) wsMoveTopWindow( wsDisplay,appMPlayer.mainWindow.WindowID );
- else wsMoveTopWindow( wsDisplay,appMPlayer.subWindow.WindowID );
- }
+ else if ( wsWMType != wsWMNetWM && wsWMType != wsWMKDE ) wsMoveTopWindow( wsDisplay,appMPlayer.subWindow.WindowID );
+ }
msButton=0;
mplSubMoved=0;
break;