mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-05 00:49:17 +00:00
(x11_common.c) Fix C89 build
This commit is contained in:
parent
35be34eb32
commit
136c08a4bb
@ -572,17 +572,17 @@ bool x11_alive(void *data)
|
||||
|
||||
case KeyRelease:
|
||||
/* When you receive a key release and the next event is a key press
|
||||
of the same key combination, then it's auto-repeat and the
|
||||
of the same key combination, then it's auto-repeat and the
|
||||
key wasn't actually released. */
|
||||
if(XEventsQueued(g_x11_dpy, QueuedAfterReading))
|
||||
{
|
||||
XEvent next_event;
|
||||
XPeekEvent(g_x11_dpy, &next_event);
|
||||
if (next_event.type == KeyPress &&
|
||||
if (next_event.type == KeyPress &&
|
||||
next_event.xkey.time == event.xkey.time &&
|
||||
next_event.xkey.keycode == event.xkey.keycode)
|
||||
{
|
||||
break; // Key wasn't actually released
|
||||
break; /* Key wasn't actually released */
|
||||
}
|
||||
}
|
||||
case KeyPress:
|
||||
|
Loading…
x
Reference in New Issue
Block a user