diff Gui/mplayer/sw.h @ 6622:da08877b9512

fix window hiding bug with some wms (kde, gnome, icewm, mwm, wmaker)
author pontscho
date Tue, 02 Jul 2002 21:10:42 +0000
parents f554e7271587
children 7bc4c6ba9485
line wrap: on
line diff
--- a/Gui/mplayer/sw.h	Tue Jul 02 20:29:27 2002 +0000
+++ b/Gui/mplayer/sw.h	Tue Jul 02 21:10:42 2002 +0000
@@ -9,6 +9,7 @@
  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 @@
           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;