Shutdown NoGUI build properly in linux.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5202 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-03-16 13:18:52 +00:00
parent 6723a91664
commit d6b9a2ec81
2 changed files with 18 additions and 7 deletions

View File

@ -259,8 +259,7 @@ THREAD_RETURN XEventThread(void *pArg)
{
XEvent event;
KeySym key;
int num_events;
for (num_events = XPending(GLWin.dpy);num_events > 0;num_events--) {
for (int num_events = XPending(GLWin.dpy); num_events > 0; num_events--) {
XNextEvent(GLWin.dpy, &event);
switch(event.type) {
case KeyPress: