From 11ac672730198322b65e6a5bdbad865c4982e360 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Mon, 21 Jun 2010 12:29:32 +0000 Subject: [PATCH] Revert a hack that snzgoo committed that should not have been commited. That hack prevents the X loop in GLUtil.cpp from properly detecting events that it should detect. I don't know if issue 2792 is a valid issue for dolphin. I think that is a bug in the X server implementation on those distributions of those affected. I can not replicate it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5758 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp index 572d2cc099..8c31d7dd7a 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp @@ -164,7 +164,7 @@ THREAD_RETURN XEventThread(void *pArg) { XEvent event; KeySym key; - for (int num_events = XPending(GLWin.dpy) -1; 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: