From 3039a4f84aa0c70697775a48161949c4fdb80f47 Mon Sep 17 00:00:00 2001 From: pontscho Date: Sat, 1 Sep 2001 13:38:32 +0000 Subject: fix key handling ? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1820 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/mw.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Gui') 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; -- cgit v1.2.3