summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 17:51:10 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 17:51:10 +0000
commit29744235bd26171ffecfbe4fd17f45130444d79c (patch)
tree3d1c6d806c5d22b70735faa1e4e20bd74b089100 /Gui
parent3bec8cbbc6e10b87382dc684ec7189704820d0cc (diff)
downloadmpv-29744235bd26171ffecfbe4fd17f45130444d79c.tar.bz2
mpv-29744235bd26171ffecfbe4fd17f45130444d79c.tar.xz
iconize support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1840 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/mw.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h
index 04a5d3bfbc..69c1a587db 100644
--- a/Gui/mplayer/mw.h
+++ b/Gui/mplayer/mw.h
@@ -126,16 +126,12 @@ void PutImage( txSample * bf,int x,int y,int max,int ofs )
}
}
-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 @@ void mplMsgHandle( int msg,float param )
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 @@ void mplMainKeyHandle( int State,int Type,int Key )
case ',':
case '<': msg=evPrev; break;
- case wsx:
- case wsX:
case wsEscape: msg=evExit; break;
case wsUp: msg=evForward1min; break;
@@ -558,6 +555,7 @@ void mplMainKeyHandle( int State,int Type,int Key )
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 @@ void mplMainKeyHandle( int State,int Type,int Key )
mplMainRender=1;
wsPostRedisplay( &appMPlayer.mainWindow );
}
- vo_x11_putkey( Key );
}