[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.53,1.54

Zoltan Ponekker pontscho at mplayer.dev.hu
Thu Mar 7 12:57:36 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv6220/libvo

Modified Files:
	x11_common.c 
Log Message:
small bug fixed and workarounds :(

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- x11_common.c	23 Feb 2002 01:38:06 -0000	1.53
+++ x11_common.c	7 Mar 2002 11:57:33 -0000	1.54
@@ -473,9 +473,16 @@
            ret|=VO_EVENT_RESIZE;
            break;
       case KeyPress:
-           XLookupString( &Event.xkey,buf,sizeof(buf),&keySym,&stat );
-           vo_x11_putkey( ( (keySym&0xff00) != 0?( (keySym&0x00ff) + 256 ):( keySym ) ) );
-           ret|=VO_EVENT_KEYPRESS;
+           { 
+	    int key;
+            XLookupString( &Event.xkey,buf,sizeof(buf),&keySym,&stat );
+	    key=( (keySym&0xff00) != 0?( (keySym&0x00ff) + 256 ):( keySym ) );
+	    #ifdef HAVE_NEW_GUI
+	     if ( ( use_gui )&&( key == wsEnter ) ) break;
+	    #endif
+            vo_x11_putkey( key );
+            ret|=VO_EVENT_KEYPRESS;
+	   }
            break;
 #ifdef HAVE_NEW_INPUT
       case ButtonPress:




More information about the MPlayer-cvslog mailing list