This commit is contained in:
mattn 2015-06-08 20:35:04 +00:00
commit 7d9e476185

View File

@ -893,12 +893,6 @@ static void processEvent(XEvent *event)
Status status; Status status;
wchar_t buffer[16]; wchar_t buffer[16];
if (XFilterEvent(event, None))
{
// Discard intermediary (dead key) events for character input
break;
}
const int count = XwcLookupString(window->x11.ic, const int count = XwcLookupString(window->x11.ic,
&event->xkey, &event->xkey,
buffer, sizeof(buffer), buffer, sizeof(buffer),
@ -1721,6 +1715,8 @@ void _glfwPlatformPollEvents(void)
{ {
XEvent event; XEvent event;
XNextEvent(_glfw.x11.display, &event); XNextEvent(_glfw.x11.display, &event);
if (XFilterEvent(event, None))
continue;
processEvent(&event); processEvent(&event);
} }