From 20de42b61d88818a32fcfe50cf3d70c985741c56 Mon Sep 17 00:00:00 2001 From: al Date: Sun, 21 Nov 2004 10:53:27 +0000 Subject: [PATCH] The GUI shouldn't handle key events at two places. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14002 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index f442b9639c..4d2f4f445b 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1057,6 +1057,10 @@ int vo_x11_check_events(Display * mydisplay) { 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 @@ int vo_x11_check_events(Display * mydisplay) 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; }