mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 18:36:09 +00:00
iconize support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1840 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3bec8cbbc6
commit
29744235bd
@ -126,16 +126,12 @@ void PutImage( txSample * bf,int x,int y,int max,int ofs )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int mainis = 1;
|
|
||||||
|
|
||||||
void mplMainDraw( wsParamDisplay )
|
void mplMainDraw( wsParamDisplay )
|
||||||
{
|
{
|
||||||
wItem * item;
|
wItem * item;
|
||||||
txSample * image = NULL;
|
txSample * image = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if ( appMPlayer.mainWindow.Focused == 2 ) mainis=1;
|
|
||||||
|
|
||||||
if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible ||
|
if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible ||
|
||||||
!mainVisible ) return;
|
!mainVisible ) return;
|
||||||
// !appMPlayer.mainWindow.Mapped ) return;
|
// !appMPlayer.mainWindow.Mapped ) return;
|
||||||
@ -220,8 +216,11 @@ void mplMsgHandle( int msg,float param )
|
|||||||
exit_player( "Exit" );
|
exit_player( "Exit" );
|
||||||
break;
|
break;
|
||||||
case evIconify:
|
case evIconify:
|
||||||
IZE("evIcon");
|
switch ( (int)param )
|
||||||
wsIconify( appMPlayer.mainWindow );
|
{
|
||||||
|
case 0: wsIconify( appMPlayer.mainWindow ); break;
|
||||||
|
case 1: wsIconify( appMPlayer.subWindow ); break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case evFullScreen:
|
case evFullScreen:
|
||||||
IZE("evFullS");
|
IZE("evFullS");
|
||||||
@ -528,8 +527,6 @@ void mplMainKeyHandle( int State,int Type,int Key )
|
|||||||
case ',':
|
case ',':
|
||||||
case '<': msg=evPrev; break;
|
case '<': msg=evPrev; break;
|
||||||
|
|
||||||
case wsx:
|
|
||||||
case wsX:
|
|
||||||
case wsEscape: msg=evExit; break;
|
case wsEscape: msg=evExit; break;
|
||||||
|
|
||||||
case wsUp: msg=evForward1min; break;
|
case wsUp: msg=evForward1min; break;
|
||||||
@ -558,6 +555,7 @@ void mplMainKeyHandle( int State,int Type,int Key )
|
|||||||
case wsS: msg=evStop; break;
|
case wsS: msg=evStop; break;
|
||||||
case wsp:
|
case wsp:
|
||||||
case wsP: msg=evPlayList; break;
|
case wsP: msg=evPlayList; break;
|
||||||
|
default: vo_x11_putkey( Key ); return;
|
||||||
}
|
}
|
||||||
if ( ( msg != evNone )&&( Type == wsKeyPressed ) )
|
if ( ( msg != evNone )&&( Type == wsKeyPressed ) )
|
||||||
{
|
{
|
||||||
@ -565,5 +563,4 @@ void mplMainKeyHandle( int State,int Type,int Key )
|
|||||||
mplMainRender=1;
|
mplMainRender=1;
|
||||||
wsPostRedisplay( &appMPlayer.mainWindow );
|
wsPostRedisplay( &appMPlayer.mainWindow );
|
||||||
}
|
}
|
||||||
vo_x11_putkey( Key );
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user