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
This commit is contained in:
al 2004-11-21 10:53:27 +00:00
parent d2d9a23ca9
commit 20de42b61d
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}