[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.20,1.21
Zoltan Ponekker
pontscho at mplayer.dev.hu
Sun Sep 2 19:51:12 CEST 2001
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv16084
Modified Files:
mw.h
Log Message:
iconize support
Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mw.h 1 Sep 2001 17:53:07 -0000 1.20
+++ mw.h 2 Sep 2001 17:51:10 -0000 1.21
@@ -126,16 +126,12 @@
}
}
-int mainis = 1;
-
void mplMainDraw( wsParamDisplay )
{
wItem * item;
txSample * image = NULL;
int i;
-if ( appMPlayer.mainWindow.Focused == 2 ) mainis=1;
-
if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible ||
!mainVisible ) return;
// !appMPlayer.mainWindow.Mapped ) return;
@@ -220,8 +216,11 @@
exit_player( "Exit" );
break;
case evIconify:
- IZE("evIcon");
- wsIconify( appMPlayer.mainWindow );
+ switch ( (int)param )
+ {
+ case 0: wsIconify( appMPlayer.mainWindow ); break;
+ case 1: wsIconify( appMPlayer.subWindow ); break;
+ }
break;
case evFullScreen:
IZE("evFullS");
@@ -528,8 +527,6 @@
case ',':
case '<': msg=evPrev; break;
- case wsx:
- case wsX:
case wsEscape: msg=evExit; break;
case wsUp: msg=evForward1min; break;
@@ -558,6 +555,7 @@
case wsS: msg=evStop; break;
case wsp:
case wsP: msg=evPlayList; break;
+ default: vo_x11_putkey( Key ); return;
}
if ( ( msg != evNone )&&( Type == wsKeyPressed ) )
{
@@ -565,5 +563,4 @@
mplMainRender=1;
wsPostRedisplay( &appMPlayer.mainWindow );
}
- vo_x11_putkey( Key );
}
More information about the MPlayer-cvslog
mailing list