summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-01 13:38:32 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-01 13:38:32 +0000
commit3039a4f84aa0c70697775a48161949c4fdb80f47 (patch)
tree89adb025b5e042f7e9694b03ee7f08c02e40d75a /Gui
parent5181605e277050cdc7cb2e5b8a47cc404817cf8f (diff)
downloadmpv-3039a4f84aa0c70697775a48161949c4fdb80f47.tar.bz2
mpv-3039a4f84aa0c70697775a48161949c4fdb80f47.tar.xz
fix key handling ?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1820 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/mw.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h
index 0af876e20a..1f9434174b 100644
--- a/Gui/mplayer/mw.h
+++ b/Gui/mplayer/mw.h
@@ -125,12 +125,16 @@ 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;
@@ -532,8 +536,14 @@ void mplMainKeyHandle( int State,int Type,int Key )
case wsRight: msg=evForward10sec; break;
case wsLeft: msg=evBackward10sec; break;
- case wsGrayMul: msg=evIncVolume; break;
- case wsGrayDiv: msg=evDecVolume; break;
+ case wsGrayMul:
+ msg=evIncVolume;
+ vo_x11_putkey( Key );
+ break;
+ case wsGrayDiv:
+ msg=evDecVolume;
+ vo_x11_putkey( Key );
+ break;
case wsEnter: msg=evPlay; break;
case wsSpace: msg=evPause; break;