mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
XIM doesn't work because some events are not filtered with XFilterEvent
This commit is contained in:
parent
5268914b3f
commit
d48fc47dc9
@ -913,12 +913,6 @@ static void processEvent(XEvent *event)
|
||||
Status status;
|
||||
wchar_t buffer[16];
|
||||
|
||||
if (XFilterEvent(event, None))
|
||||
{
|
||||
// Discard intermediary (dead key) events for character input
|
||||
break;
|
||||
}
|
||||
|
||||
const int count = XwcLookupString(window->x11.ic,
|
||||
&event->xkey,
|
||||
buffer, sizeof(buffer),
|
||||
@ -1749,6 +1743,8 @@ void _glfwPlatformPollEvents(void)
|
||||
{
|
||||
XEvent event;
|
||||
XNextEvent(_glfw.x11.display, &event);
|
||||
if (XFilterEvent(event, None))
|
||||
continue;
|
||||
processEvent(&event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user