[Mplayer-cvslog] CVS: main/Gui/mplayer sw.h,1.32,1.33 widgets.c,1.27,1.28
Zoltan Ponekker
pontscho at mplayerhq.hu
Tue Jul 2 23:10:43 CEST 2002
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv15911/Gui/mplayer
Modified Files:
sw.h widgets.c
Log Message:
fix window hiding bug with some wms (kde, gnome, icewm, mwm, wmaker)
Index: sw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/sw.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- sw.h 2 Jul 2002 13:35:03 -0000 1.32
+++ sw.h 2 Jul 2002 21:10:40 -0000 1.33
@@ -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;
Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- widgets.c 4 Jun 2002 16:38:17 -0000 1.27
+++ widgets.c 2 Jul 2002 21:10:40 -0000 1.28
@@ -163,15 +163,15 @@
// gtkSetLayer( PlayList );
break;
case evLoad:
- ShowFileSelect( fsVideoSelector );
+ ShowFileSelect( fsVideoSelector,0 );
gtkSetLayer( fsFileSelect );
break;
case evFirstLoad:
- ShowFileSelect( fsVideoSelector );
+ ShowFileSelect( fsVideoSelector,0 );
gtkSetLayer( fsFileSelect );
break;
case evLoadSubtitle:
- ShowFileSelect( fsSubtitleSelector );
+ ShowFileSelect( fsSubtitleSelector,0 );
gtkSetLayer( fsFileSelect );
break;
case evAbout:
More information about the MPlayer-cvslog
mailing list