changeset 14001:7032d122c733

The GUI shouldn't handle key events at two places.
author al
date Sun, 21 Nov 2004 10:53:27 +0000
parents aa11fc0f2b08
children 009337ffcfc4
files libvo/x11_common.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Sun Nov 21 10:15:10 2004 +0000
+++ b/libvo/x11_common.c	Sun Nov 21 10:53:27 2004 +0000
@@ -1057,6 +1057,10 @@
                 {
                     int key;
 
+#ifdef HAVE_NEW_GUI
+                    if ( use_gui ) { break; }
+#endif
+
                     XLookupString(&Event.xkey, buf, sizeof(buf), &keySym,
                                   &stat);
 #ifdef XF86XK_AudioPause
@@ -1065,10 +1069,6 @@
                     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;
                 }