changeset 1819:b5b89f8efc5f

fix key handling ?
author pontscho
date Sat, 01 Sep 2001 13:38:32 +0000
parents 18ba1f7373c5
children a04b2f92bd14
files Gui/mplayer/mw.h
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mw.h	Sat Sep 01 08:54:37 2001 +0000
+++ b/Gui/mplayer/mw.h	Sat Sep 01 13:38:32 2001 +0000
@@ -125,12 +125,16 @@
    }
 }
 
+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 @@
    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;