[MPlayer-dev-eng] [hawkeyd at visi.com: Quick fix to new input method]

D J Hawkey Jr hawkeyd at visi.com
Sun Sep 8 16:40:25 CEST 2002


Earlier, I wrote:

----- Forwarded message from D J Hawkey Jr <hawkeyd at visi.com> -----

--- x11_common.c.orig	Tue Sep  3 13:10:42 2002
+++ x11_common.c	Sun Sep  8 06:45:08 2002
@@ -515,13 +515,6 @@
  while ( XPending( mydisplay ) )
   {
    XNextEvent( mydisplay,&Event );
-   #ifdef HAVE_NEW_GUI
-    if ( use_gui ) 
-     {
-      guiGetEvent( 0,(char*)&Event );
-      if ( vo_window != Event.xany.window ) continue;
-     }
-   #endif
 //       printf("\rEvent.type=%X  \n",Event.type);
     switch( Event.type )
      {

----- End forwarded message -----

My bad. It ought to be:

--- x11_common.c.orig	Tue Sep  3 13:10:42 2002
+++ x11_common.c	Sun Sep  8 09:32:22 2002
@@ -516,7 +516,7 @@
   {
    XNextEvent( mydisplay,&Event );
    #ifdef HAVE_NEW_GUI
-    if ( use_gui ) 
+    if ( use_gui && Event.type != KeyPress ) 
      {
       guiGetEvent( 0,(char*)&Event );
       if ( vo_window != Event.xany.window ) continue;

Seems only key events are dup'd in DISTROOT/mplayer.c. Sorry 'bout that.
Dave

-- 
  ______________________                         ______________________
  \__________________   \    D. J. HAWKEY JR.   /   __________________/
     \________________/\     hawkeyd at visi.com    /\________________/
                      http://www.visi.com/~hawkeyd/




More information about the MPlayer-dev-eng mailing list