diff libvo/x11_common.c @ 4974:5da7b1522a9f

small bug fixed and workarounds :(
author pontscho
date Thu, 07 Mar 2002 11:57:33 +0000
parents 178b524e5213
children 7b65a4f0b74e
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Mar 07 02:49:46 2002 +0000
+++ b/libvo/x11_common.c	Thu Mar 07 11:57:33 2002 +0000
@@ -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: